From: Janusz Dobrowolski Date: Tue, 19 May 2009 15:12:00 +0000 (+0000) Subject: Removed obsolete has_locale helper. X-Git-Tag: v2.4.2~19^2~1376 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1c10a2b7d9a2624febe901dbe5cbc5dc9159eebf;p=fa-stable.git Removed obsolete has_locale helper. --- 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) {