]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Autocomplete/autocomplete.php
Update translator documentation.
[quix0rs-gnu-social.git] / plugins / Autocomplete / autocomplete.php
index c92002245fba467c457f866c2e10e9406407c568..0bb1b783dbc6b9fa51c753d721ca9e9c6c470dc0 100644 (file)
@@ -94,7 +94,8 @@ class AutocompleteAction extends Action
 
         $cur = common_current_user();
         if (!$cur) {
-            throw new ClientException('Access forbidden', true);
+            // TRANS: Client exception in autocomplete plugin.
+            throw new ClientException(_m('Access forbidden.'), true);
         }
         $this->groups=array();
         $this->users=array();
@@ -165,4 +166,16 @@ class AutocompleteAction extends Action
             print json_encode($result) . "\n";
         }
     }
+
+    /**
+     * Is this action read-only?
+     *
+     * @param array $args other arguments
+     *
+     * @return boolean is read only action?
+     */
+    function isReadOnly($args)
+    {
+        return true;
+    }
 }