diff options
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/acp/acp_extensions.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/avatar/driver/gravatar.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/avatar/driver/remote.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/avatar/driver/upload.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/class_loader.php | 8 | ||||
| -rw-r--r-- | phpBB/includes/controller/helper.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/extension/finder.php | 8 | ||||
| -rw-r--r-- | phpBB/includes/extension/manager.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/extension/metadata_manager.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/functions_url_matcher.php | 6 | ||||
| -rw-r--r-- | phpBB/includes/hook/finder.php | 2 | 
11 files changed, 22 insertions, 22 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php index e4f8059b45..e4defa0400 100644 --- a/phpBB/includes/acp/acp_extensions.php +++ b/phpBB/includes/acp/acp_extensions.php @@ -54,7 +54,7 @@ class acp_extensions  		// If they've specified an extension, let's load the metadata manager and validate it.  		if ($ext_name)  		{ -			$md_manager = new phpbb_extension_metadata_manager($ext_name, $db, $phpbb_extension_manager, $phpbb_root_path, ".$phpEx", $template, $config); +			$md_manager = new phpbb_extension_metadata_manager($ext_name, $db, $phpbb_extension_manager, $phpbb_root_path, $phpEx, $template, $config);  			try  			{ diff --git a/phpBB/includes/avatar/driver/gravatar.php b/phpBB/includes/avatar/driver/gravatar.php index 2e2ae2071f..d559da1c0d 100644 --- a/phpBB/includes/avatar/driver/gravatar.php +++ b/phpBB/includes/avatar/driver/gravatar.php @@ -74,7 +74,7 @@ class phpbb_avatar_driver_gravatar extends phpbb_avatar_driver  		if (!function_exists('validate_data'))  		{ -			require($this->phpbb_root_path . 'includes/functions_user' . $this->php_ext); +			require($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);  		}  		$validate_array = validate_data( diff --git a/phpBB/includes/avatar/driver/remote.php b/phpBB/includes/avatar/driver/remote.php index 3661e16160..7da58107a1 100644 --- a/phpBB/includes/avatar/driver/remote.php +++ b/phpBB/includes/avatar/driver/remote.php @@ -63,7 +63,7 @@ class phpbb_avatar_driver_remote extends phpbb_avatar_driver  		if (!function_exists('validate_data'))  		{ -			require($this->phpbb_root_path . 'includes/functions_user' . $this->php_ext); +			require($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);  		}  		$validate_array = validate_data( @@ -117,7 +117,7 @@ class phpbb_avatar_driver_remote extends phpbb_avatar_driver  		if (!class_exists('fileupload'))  		{ -			include($this->phpbb_root_path . 'includes/functions_upload' . $this->php_ext); +			include($this->phpbb_root_path . 'includes/functions_upload.' . $this->php_ext);  		}  		$types = fileupload::image_types(); diff --git a/phpBB/includes/avatar/driver/upload.php b/phpBB/includes/avatar/driver/upload.php index f91d170d7c..19737693fd 100644 --- a/phpBB/includes/avatar/driver/upload.php +++ b/phpBB/includes/avatar/driver/upload.php @@ -27,7 +27,7 @@ class phpbb_avatar_driver_upload extends phpbb_avatar_driver  	public function get_data($row, $ignore_config = false)  	{  		return array( -			'src' => $this->phpbb_root_path . 'download/file' . $this->php_ext . '?avatar=' . $row['avatar'], +			'src' => $this->phpbb_root_path . 'download/file.' . $this->php_ext . '?avatar=' . $row['avatar'],  			'width' => $row['avatar_width'],  			'height' => $row['avatar_height'],  		); @@ -63,7 +63,7 @@ class phpbb_avatar_driver_upload extends phpbb_avatar_driver  		if (!class_exists('fileupload'))  		{ -			include($this->phpbb_root_path . 'includes/functions_upload' . $this->php_ext); +			include($this->phpbb_root_path . 'includes/functions_upload.' . $this->php_ext);  		}  		$upload = new fileupload('AVATAR_', $this->allowed_extensions, $this->config['avatar_filesize'], $this->config['avatar_min_width'], $this->config['avatar_min_height'], $this->config['avatar_max_width'], $this->config['avatar_max_height'], (isset($this->config['mime_triggers']) ? explode('|', $this->config['mime_triggers']) : false)); 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;  	}  	/** diff --git a/phpBB/includes/controller/helper.php b/phpBB/includes/controller/helper.php index 46c6307cb4..74410ddfd1 100644 --- a/phpBB/includes/controller/helper.php +++ b/phpBB/includes/controller/helper.php @@ -117,7 +117,7 @@ class phpbb_controller_helper  			$params = array('controller' => $route);  		} -		return append_sid($this->phpbb_root_path . 'app' . $this->php_ext . $route_params, $params, $is_amp, $session_id); +		return append_sid($this->phpbb_root_path . 'app.' . $this->php_ext . $route_params, $params, $is_amp, $session_id);  	}  	/** diff --git a/phpBB/includes/extension/finder.php b/phpBB/includes/extension/finder.php index 02a9ebb8c3..766b9e9b63 100644 --- a/phpBB/includes/extension/finder.php +++ b/phpBB/includes/extension/finder.php @@ -62,7 +62,7 @@ class phpbb_extension_finder  	* @param string $cache_name The name of the cache variable, defaults to  	*                           _ext_finder  	*/ -	public function __construct(phpbb_extension_manager $extension_manager, phpbb_filesystem $filesystem, $phpbb_root_path = '', phpbb_cache_driver_interface $cache = null, $php_ext = '.php', $cache_name = '_ext_finder') +	public function __construct(phpbb_extension_manager $extension_manager, phpbb_filesystem $filesystem, $phpbb_root_path = '', phpbb_cache_driver_interface $cache = null, $php_ext = 'php', $cache_name = '_ext_finder')  	{  		$this->extension_manager = $extension_manager;  		$this->filesystem = $filesystem; @@ -256,8 +256,8 @@ class phpbb_extension_finder  	*/  	public function get_classes($cache = true, $use_all_available = false)  	{ -		$this->query['extension_suffix'] .= $this->php_ext; -		$this->query['core_suffix'] .= $this->php_ext; +		$this->query['extension_suffix'] .= '.' . $this->php_ext; +		$this->query['core_suffix'] .= '.' . $this->php_ext;  		$files = $this->find($cache, false, $use_all_available); @@ -277,7 +277,7 @@ class phpbb_extension_finder  		{  			$file = preg_replace('#^includes/#', '', $file); -			$classes[] = 'phpbb_' . str_replace('/', '_', substr($file, 0, -strlen($this->php_ext))); +			$classes[] = 'phpbb_' . str_replace('/', '_', substr($file, 0, -strlen('.' . $this->php_ext)));  		}  		return $classes;  	} diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php index de9a3937c3..a1022762b8 100644 --- a/phpBB/includes/extension/manager.php +++ b/phpBB/includes/extension/manager.php @@ -51,7 +51,7 @@ class phpbb_extension_manager  	* @param phpbb_cache_driver_interface $cache A cache instance or null  	* @param string $cache_name The name of the cache variable, defaults to _ext  	*/ -	public function __construct(ContainerInterface $container, phpbb_db_driver $db, phpbb_config $config, phpbb_db_migrator $migrator, phpbb_filesystem $filesystem, $extension_table, $phpbb_root_path, $php_ext = '.php', phpbb_cache_driver_interface $cache = null, $cache_name = '_ext') +	public function __construct(ContainerInterface $container, phpbb_db_driver $db, phpbb_config $config, phpbb_db_migrator $migrator, phpbb_filesystem $filesystem, $extension_table, $phpbb_root_path, $php_ext = 'php', phpbb_cache_driver_interface $cache = null, $cache_name = '_ext')  	{  		$this->container = $container;  		$this->phpbb_root_path = $phpbb_root_path; @@ -412,7 +412,7 @@ class phpbb_extension_manager  			RecursiveIteratorIterator::SELF_FIRST);  		foreach ($iterator as $file_info)  		{ -			if ($file_info->isFile() && $file_info->getFilename() == 'ext' . $this->php_ext) +			if ($file_info->isFile() && $file_info->getFilename() == 'ext.' . $this->php_ext)  			{  				$ext_name = $iterator->getInnerIterator()->getSubPath(); diff --git a/phpBB/includes/extension/metadata_manager.php b/phpBB/includes/extension/metadata_manager.php index 36b0f8b184..1637abd340 100644 --- a/phpBB/includes/extension/metadata_manager.php +++ b/phpBB/includes/extension/metadata_manager.php @@ -39,7 +39,7 @@ class phpbb_extension_metadata_manager  	* @param string $phpbb_root_path Path to the phpbb includes directory.  	* @param string $phpEx php file extension  	*/ -	public function __construct($ext_name, phpbb_db_driver $db, phpbb_extension_manager $extension_manager, $phpbb_root_path, $phpEx = '.php', phpbb_template $template, phpbb_config $config) +	public function __construct($ext_name, phpbb_db_driver $db, phpbb_extension_manager $extension_manager, $phpbb_root_path, $phpEx = 'php', phpbb_template $template, phpbb_config $config)  	{  		$this->phpbb_root_path = $phpbb_root_path;  		$this->db = $db; diff --git a/phpBB/includes/functions_url_matcher.php b/phpBB/includes/functions_url_matcher.php index 7280cb74eb..a89ab7b126 100644 --- a/phpBB/includes/functions_url_matcher.php +++ b/phpBB/includes/functions_url_matcher.php @@ -60,7 +60,7 @@ function phpbb_create_dumped_url_matcher(phpbb_extension_finder $finder, $root_p  		'class'			=> 'phpbb_url_matcher',  	)); -	file_put_contents($root_path . 'cache/url_matcher' . $php_ext, $cached_url_matcher_dump); +	file_put_contents($root_path . 'cache/url_matcher.' . $php_ext, $cached_url_matcher_dump);  }  /** @@ -87,7 +87,7 @@ function phpbb_create_url_matcher(phpbb_extension_finder $finder, RequestContext  */  function phpbb_load_url_matcher(RequestContext $context, $root_path, $php_ext)  { -	require($root_path . 'cache/url_matcher' . $php_ext); +	require($root_path . 'cache/url_matcher.' . $php_ext);  	return new phpbb_url_matcher($context);  } @@ -102,5 +102,5 @@ function phpbb_load_url_matcher(RequestContext $context, $root_path, $php_ext)  */  function phpbb_url_matcher_dumped($root_path, $php_ext)  { -	return file_exists($root_path . 'cache/url_matcher' . $php_ext); +	return file_exists($root_path . 'cache/url_matcher.' . $php_ext);  } diff --git a/phpBB/includes/hook/finder.php b/phpBB/includes/hook/finder.php index 065e685514..7b0412f733 100644 --- a/phpBB/includes/hook/finder.php +++ b/phpBB/includes/hook/finder.php @@ -66,7 +66,7 @@ class phpbb_hook_finder  		{  			while (($file = readdir($dh)) !== false)  			{ -				if (strpos($file, 'hook_') === 0 && substr($file, -(strlen($this->php_ext) + 1)) === '.' . $this->php_ext) +				if (strpos($file, 'hook_') === 0 && substr($file, -strlen('.' . $this->php_ext)) === '.' . $this->php_ext)  				{  					$hook_files[] = substr($file, 0, -(strlen($this->php_ext) + 1));  				}  | 
