From 1c10a2b7d9a2624febe901dbe5cbc5dc9159eebf Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 19 May 2009 15:12:00 +0000 Subject: [PATCH] Removed obsolete has_locale helper. --- includes/lang/language.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/includes/lang/language.php b/includes/lang/language.php index 0727222c..a444838c 100644 --- a/includes/lang/language.php +++ b/includes/lang/language.php @@ -93,24 +93,6 @@ class language } } -/* - Test if named function is defined in locale.inc file. -*/ -function has_locale($fun=null) -{ - global $path_to_root; - - if ($_SESSION['language']->is_locale_file) - { - global $path_to_root; - include_once($path_to_root . "/lang/" . - $_SESSION['language']->code . "/locale.inc"); - - if (!isset($fun) || function_exists($fun)) - return true; - } - return false; -} function _set($key,$value) { -- 2.30.2