fix #8131 - chinese translations
[Pman.Core] / GroupCountries.php
index f8480c3..fdd8fca 100644 (file)
@@ -15,7 +15,7 @@ class Pman_Core_GroupCountries extends Pman
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
         if (!$au) {
-            $this->jerr("Not authenticated", array('authFailure' => true));
+            $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
         }
         if ($au->company()->comptype != 'OWNER') {
             $this->jerr("Permission Denied" );
@@ -24,12 +24,12 @@ class Pman_Core_GroupCountries extends Pman
         return true;
     }
     
-    function get()
+    function get($v, $opts=array())
     {
-        $this->post();
+        $this->post($v);
     }
     
-    function post()
+    function post($v)
     {
         if (!$this->hasPerm( 'Core.Groups','E')) { // editing groups..
             $this->jerr("PERMISSION DENIED");