diff options
Diffstat (limited to '')
-rw-r--r-- | plugins/admin_advices/main.inc.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/admin_advices/main.inc.php b/plugins/admin_advices/main.inc.php index 008b0b445..e94da7c09 100644 --- a/plugins/admin_advices/main.inc.php +++ b/plugins/admin_advices/main.inc.php @@ -61,9 +61,13 @@ function set_admin_advice() $user['language'] : $conf['default_language']; // en_UK.iso-8859-1
$adv = array();
-
+ if ( !@file_exists(PHPWG_ROOT_PATH
+ . "plugins/admin_advices/$advlang/lang.adv.php") )
+ {
+ $advlang = 'en_UK.iso-8859-1';
+ }
// Include language advices
- include_once( PHPWG_ROOT_PATH
+ @include_once( PHPWG_ROOT_PATH
. "plugins/admin_advices/$advlang/lang.adv.php" );
// If there is an advice
|