dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03f7d0c
)
Fixed bugs
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 2 Jul 2006 12:00:31 +0000
(12:00 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 2 Jul 2006 12:00:31 +0000
(12:00 +0000)
includes/AutoLoader.php
patch
|
blob
|
history
diff --git
a/includes/AutoLoader.php
b/includes/AutoLoader.php
index
ae9acbf
..
6bfbd30
100644
(file)
--- a/
includes/AutoLoader.php
+++ b/
includes/AutoLoader.php
@@
-228,7
+228,8
@@
function __autoload($className) {
}
# Make an absolute path, this improves performance by avoiding some stat calls
- if ( substr( $filename, 0, 1 ) == '/' || substr( $filename, 1, 1 ) == ':' ) {
+ if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) {
+ global $IP;
$filename = "$IP/$filename";
}
require( $filename );