Pman.Tab.AdminEnum.bjs
[Pman.Admin] / InterfaceTranslations.php
index a4f2e8b..e3de56f 100644 (file)
@@ -29,14 +29,14 @@ class Pman_Admin_InterfaceTranslations extends Pman_Admin_Translations
     }
     
     
-    function get($module)
+    function get($module, $opts = Array())
     {
         
         if (empty($module)) {
             $this->jerr("no module selected");
         }
         $this->init();
-        //DB_DataObject::debugLevel(1);
+         //DB_DataObject::debugLevel(1);
         require_once 'Services/JSON.php';
         $d = DB_DataObject::factory('translations');
         $d->module = $module;
@@ -53,16 +53,16 @@ class Pman_Admin_InterfaceTranslations extends Pman_Admin_Translations
             $data = $this->loadTranslateDB($lang,$module);
             
             $j = new Services_JSON();
-            echo "_T.{$lang}= Roo.apply( _T.{$lang} || { }, " .  $j->stringify($data, null, 4) . ");\n";
+            echo "_T = _T || {} ; _T.{$lang}= Roo.apply( _T.{$lang} || { }, " .  $j->stringify($data, null, 4) . ");\n";
             
         }
         exit;
                
     }
     
-    function post() 
+    function post($v
     {
         $this->jerr("invalid url"); 
      
-    
+    }
 }
\ No newline at end of file