From 981295f44c85792409126ee41907d3e39aafdfb9 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 29 Sep 2013 15:28:25 +0200 Subject: [PATCH] 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. --- plugins/Autocomplete/AutocompletePlugin.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)