mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
another $pref global removed
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* e107 Main
|
* e107 Main
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
|
||||||
* $Revision: 1.53 $
|
* $Revision: 1.54 $
|
||||||
* $Date: 2009-10-07 10:54:13 $
|
* $Date: 2009-10-09 10:18:07 $
|
||||||
* $Author: secretr $
|
* $Author: secretr $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -959,10 +959,9 @@ class e107
|
|||||||
*/
|
*/
|
||||||
public static function includeLan($path, $force = false)
|
public static function includeLan($path, $force = false)
|
||||||
{
|
{
|
||||||
global $pref;
|
|
||||||
if (!is_readable($path))
|
if (!is_readable($path))
|
||||||
{
|
{
|
||||||
if (varsettrue($pref['noLanguageSubs']) || (e_LANGUAGE == 'English'))
|
if (self::getPref('noLanguageSubs') || (e_LANGUAGE == 'English'))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user