aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/adjust_avatars.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/develop/adjust_avatars.php')
-rwxr-xr-xphpBB/develop/adjust_avatars.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/develop/adjust_avatars.php b/phpBB/develop/adjust_avatars.php
index 81599e694b..976f7dfb7e 100755
--- a/phpBB/develop/adjust_avatars.php
+++ b/phpBB/develop/adjust_avatars.php
@@ -9,9 +9,9 @@ die("Please read the first lines of this script for instructions on how to enabl
set_time_limit(0);
define('IN_PHPBB', true);
-$phpbb_root_path = './../';
-$phpEx = substr(strrchr(__FILE__, '.'), 1);
-include($phpbb_root_path . 'common.'.$phpEx);
+define('PHPBB_ROOT_PATH', './../');
+define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
+include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT);
// Start session management
$user->session_begin();
@@ -130,9 +130,9 @@ $db->sql_close();
function adjust_avatar($old_name, $midfix)
{
- global $config, $phpbb_root_path;
+ global $config;
- $avatar_path = $phpbb_root_path . $config['avatar_path'];
+ $avatar_path = PHPBB_ROOT_PATH . $config['avatar_path'];
$extension = strtolower(substr(strrchr($old_name, '.'), 1));
$new_name = $config['avatar_salt'] . '_' . $midfix . '.' . $extension;