aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-06 01:06:42 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-06 01:06:42 +0000
commit4510e613206ac172ea287669a6453d34b91fa419 (patch)
treecd6c306bb5f53e534cb8353c344ad45757fabaf4 /phpBB
parentd82c63ce16a66e53bd6a7143c388c1a4e0f89da9 (diff)
downloadforums-4510e613206ac172ea287669a6453d34b91fa419.tar
forums-4510e613206ac172ea287669a6453d34b91fa419.tar.gz
forums-4510e613206ac172ea287669a6453d34b91fa419.tar.bz2
forums-4510e613206ac172ea287669a6453d34b91fa419.tar.xz
forums-4510e613206ac172ea287669a6453d34b91fa419.zip
Minor changes
git-svn-id: file:///svn/phpbb/trunk@1807 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 7199bc8c31..898058e770 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -280,7 +280,7 @@ function init_userprefs($userdata)
}
}
- if( !file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.".$phpEx) )
+ if( !@file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.".$phpEx) )
{
$board_config['default_lang'] = "english";
}
@@ -289,7 +289,7 @@ function init_userprefs($userdata)
if( defined("IN_ADMIN") )
{
- if( !file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.".$phpEx) )
+ if( !@file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.".$phpEx) )
{
$board_config['default_lang'] = "english";
}
@@ -304,6 +304,7 @@ function init_userprefs($userdata)
$new_value = str_replace("_lang", "_" . $board_config['default_lang'], $value);
$images[$key] = ( file_exists($new_value) ) ? $new_value : str_replace("_lang", "_english", $value);
+// list($images_width[$key], $images_height[$key]) = getimagesize($images[$key]);
}
}