aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/class_loader.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-05-12 22:41:00 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-05-12 22:41:00 +0200
commit7e70eec5a37ddfe112e12b976821c5b944128d32 (patch)
treebc5c4b8d279474dc78207f72d65915d2b4ff1064 /phpBB/includes/class_loader.php
parentf90ed6c3cb9e1b8baeb352a07b81608fa7c067b5 (diff)
parentfe13b89dd4bd6d808d81c903e66fe869ccd43050 (diff)
downloadforums-7e70eec5a37ddfe112e12b976821c5b944128d32.tar
forums-7e70eec5a37ddfe112e12b976821c5b944128d32.tar.gz
forums-7e70eec5a37ddfe112e12b976821c5b944128d32.tar.bz2
forums-7e70eec5a37ddfe112e12b976821c5b944128d32.tar.xz
forums-7e70eec5a37ddfe112e12b976821c5b944128d32.zip
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ticket/11465
Diffstat (limited to 'phpBB/includes/class_loader.php')
-rw-r--r--phpBB/includes/class_loader.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/class_loader.php b/phpBB/includes/class_loader.php
index 6082800908..02a2d584dc 100644
--- a/phpBB/includes/class_loader.php
+++ b/phpBB/includes/class_loader.php
@@ -52,7 +52,7 @@ class phpbb_class_loader
* @param string $php_ext The file extension for PHP files
* @param phpbb_cache_driver_interface $cache An implementation of the phpBB cache interface.
*/
- public function __construct($prefix, $path, $php_ext = '.php', phpbb_cache_driver_interface $cache = null)
+ public function __construct($prefix, $path, $php_ext = 'php', phpbb_cache_driver_interface $cache = null)
{
$this->prefix = $prefix;
$this->path = $path;
@@ -111,7 +111,7 @@ class phpbb_class_loader
{
if (isset($this->cached_paths[$class]))
{
- return $this->path . $this->cached_paths[$class] . $this->php_ext;
+ return $this->path . $this->cached_paths[$class] . '.' . $this->php_ext;
}
if (!preg_match('/^' . $this->prefix . '[a-zA-Z0-9_]+$/', $class))
@@ -136,7 +136,7 @@ class phpbb_class_loader
$relative_path = $dirs . implode(array_slice($parts, $i, sizeof($parts) - $i), '_');
- if (!file_exists($this->path . $relative_path . $this->php_ext))
+ if (!file_exists($this->path . $relative_path . '.' . $this->php_ext))
{
return false;
}
@@ -147,7 +147,7 @@ class phpbb_class_loader
$this->cache->put('class_loader_' . $this->prefix, $this->cached_paths);
}
- return $this->path . $relative_path . $this->php_ext;
+ return $this->path . $relative_path . '.' . $this->php_ext;
}
/**