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.
This commit is contained in:
parent
633191d808
commit
981295f44c
@ -49,9 +49,7 @@ class AutocompletePlugin extends Plugin
|
|||||||
|
|
||||||
function onRouterInitialized($m)
|
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)
|
function onPluginVersion(&$versions)
|
||||||
|
Loading…
Reference in New Issue
Block a user