X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAutocomplete%2Fautocomplete.php;h=0bb1b783dbc6b9fa51c753d721ca9e9c6c470dc0;hb=0cca861ea7b029cfa8e247e225981158fef831c0;hp=c92002245fba467c457f866c2e10e9406407c568;hpb=e25d4683c8999a215f3f8e91e280ff52b8dd2499;p=quix0rs-gnu-social.git diff --git a/plugins/Autocomplete/autocomplete.php b/plugins/Autocomplete/autocomplete.php index c92002245f..0bb1b783db 100644 --- a/plugins/Autocomplete/autocomplete.php +++ b/plugins/Autocomplete/autocomplete.php @@ -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; + } }