]> git.mjollnir.org Git - moodle.git/commit
MDL-90 lib/setup: extend include_path to cover the PEAR libs we distribute
authormartinlanghoff <martinlanghoff>
Wed, 27 Feb 2008 02:55:36 +0000 (02:55 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 27 Feb 2008 02:55:36 +0000 (02:55 +0000)
commita4c371ece6b50286bcf212eadac7928e8421389e
tree392877cb4a33e62445345618d47d563cc581cefa
parent7cfb11db0b17ed99f5a3328ad56053b20016cdc6
MDL-90 lib/setup: extend include_path to cover the PEAR libs we distribute

Almost no cost - most of our require/include calls are with
absolute paths, which will skip the include_path. The few
that are not absolute are usually to include PEAR libs -
so this is appropriate and avoids having to change the
PEAR libs themselves when they make references to other
PEAR libs.

Using the include path does mean that OS-installed PEAR libs
will override ours. There's a small compat risk here - if you
need to ensure a particular version, use an absolute path.
lib/setup.php