From: Mikael Nordfeldth Date: Sun, 29 Sep 2013 13:28:25 +0000 (+0200) Subject: Autocomplete action must exist on user registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=981295f44c85792409126ee41907d3e39aafdfb9;p=quix0rs-gnu-social.git Autocomplete action must exist on user registration No need to restrict the autocomplete suggestion system to logged in users. It only botched the registration process, because the 'autocomplete' action had not been connected in the routing system. --- diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php index ac6334eb7a..c1f61e416e 100644 --- a/plugins/Autocomplete/AutocompletePlugin.php +++ b/plugins/Autocomplete/AutocompletePlugin.php @@ -49,9 +49,7 @@ class AutocompletePlugin extends Plugin function onRouterInitialized($m) { - if (common_logged_in()) { - $m->connect('main/autocomplete/suggest', array('action'=>'autocomplete')); - } + $m->connect('main/autocomplete/suggest', array('action'=>'autocomplete')); } function onPluginVersion(&$versions)