aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_advices/main.inc.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-01-15 22:44:48 +0000
committervdigital <vdigital@piwigo.org>2007-01-15 22:44:48 +0000
commit073ab4a9e3ef97fcfce21bf72d5eae6b61d2f801 (patch)
tree87a51881b3bd38900a957425db7df9100b210bfa /plugins/admin_advices/main.inc.php
parent6ea1ec6c86ebfe61d15aa6198e19d25501b0f5ff (diff)
Feature "Admin Advices !" (Standard plugin) : May give you always now an advice on the administration page.
Quick solved list: 1 - Wording on EXIF/IPTC Advices 2 - Default language is English 3 - Some Transparency issues under IE 4 - Some Border issues 5 - PWG Menu moved from Advices Box to Intro. 6 - phpwebgallery.net URLs are available thru a new admin function pwg_URL() 7 - PWG Menu URL open in a new target (XHTML strict compliant (JS)). git-svn-id: http://piwigo.org/svn/trunk@1724 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/admin_advices/main.inc.php')
-rw-r--r--plugins/admin_advices/main.inc.php8
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