From d90eefdbe9a75db939f2e1cbbbf87a3eafb9dd71 Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 9 Oct 2009 10:18:07 +0000 Subject: [PATCH] another $pref global removed --- e107_handlers/e107_class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 7315aeda0..c6248ca6c 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -9,8 +9,8 @@ * e107 Main * * $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $ - * $Revision: 1.53 $ - * $Date: 2009-10-07 10:54:13 $ + * $Revision: 1.54 $ + * $Date: 2009-10-09 10:18:07 $ * $Author: secretr $ */ @@ -959,10 +959,9 @@ class e107 */ public static function includeLan($path, $force = false) { - global $pref; if (!is_readable($path)) { - if (varsettrue($pref['noLanguageSubs']) || (e_LANGUAGE == 'English')) + if (self::getPref('noLanguageSubs') || (e_LANGUAGE == 'English')) { return FALSE; }