i18n
[old-projects.git] / philter / philter / include / philter.inc.php
index ca0b2a8..8874dcd 100644 (file)
@@ -9,6 +9,8 @@
 
 require_once("include/core.inc.php");
 
+function i18n($_index) { global $philter; echo $philter->i18n($_index); }
+
 /** Philter base configuration class
  * This is the base class of Philter.
  */
@@ -38,8 +40,8 @@ class Philter {
      * @returns the string or false
      */
     function i18n($_index) {
-        if(isset($this->confg[$_index]))
-            return $this->confg[$_index];
+        if(isset($this->config['i18n'][$_index]))
+            return $this->config['i18n'][$_index];
         return false;
     }