]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Autocomplete action must exist on user registration
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 29 Sep 2013 13:28:25 +0000 (15:28 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 29 Sep 2013 13:28:25 +0000 (15:28 +0200)
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.

plugins/Autocomplete/AutocompletePlugin.php

index ac6334eb7ac671715241fd9b7d183145e318d814..c1f61e416e2c2247485110dfc1d9759cb0e48652 100644 (file)
@@ -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)