[pLog-svn] r1825 - plog/branches/plog-1.0.1/class/locale
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Apr 12 17:17:10 GMT 2005
Author: oscar
Date: 2005-04-12 17:17:09 +0000 (Tue, 12 Apr 2005)
New Revision: 1825
Modified:
plog/branches/plog-1.0.1/class/locale/locales.class.php
Log:
if the plugin does not provide a locale, then do not throw an error
Modified: plog/branches/plog-1.0.1/class/locale/locales.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/locale/locales.class.php 2005-04-12 12:11:57 UTC (rev 1824)
+++ plog/branches/plog-1.0.1/class/locale/locales.class.php 2005-04-12 17:17:09 UTC (rev 1825)
@@ -75,7 +75,10 @@
}
else {
// if not, try to load en_UK by default
- $pluginLocale = Locales::getPluginLocale( $pluginId, "en_UK" );
+ if( $pluginHasLocale( $pluginId, "en_UK" )) {
+ $pluginLocale = Locales::getPluginLocale( $pluginId, "en_UK" );
+ }
+ // if not en_UK locale available, forget about it...
}
// merge the plugin locale with the big locale
More information about the pLog-svn
mailing list