aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php4
-rw-r--r--phpBB/includes/template/template.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 86c6bc2505..e4727b9705 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -752,7 +752,7 @@ function phpbb_is_writable($file)
* @param string $path Path to check absoluteness of
* @return boolean
*/
-function is_absolute($path)
+function phpbb_is_absolute($path)
{
return ($path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:[/\\\]#i', $path))) ? true : false;
}
@@ -772,7 +772,7 @@ function phpbb_own_realpath($path)
$path_prefix = '';
// Determine what sort of path we have
- if (is_absolute($path))
+ if (phpbb_is_absolute($path))
{
$absolute = true;
diff --git a/phpBB/includes/template/template.php b/phpBB/includes/template/template.php
index c16eddc426..010284edf3 100644
--- a/phpBB/includes/template/template.php
+++ b/phpBB/includes/template/template.php
@@ -526,7 +526,7 @@ class phpbb_template
*/
public function _php_include($filename)
{
- if (is_absolute($filename))
+ if (phpbb_is_absolute($filename))
{
$file = $filename;
}