forked from GNUsocial/gnu-social
[ROUTES] Allow accept-header specification during router creation
Router: - Fix calls to connect, most of them were misusing the function's params URLMapper: - Minor fixes - Documentation - Add support for accept-header specification Plugins/*: - Fix calls to connect
This commit is contained in:
committed by
Diogo Cordeiro
parent
2032c7c1f7
commit
5c0a3102ff
@@ -75,9 +75,9 @@ class UserFlagPlugin extends Plugin
|
||||
*/
|
||||
public function onRouterInitialized(URLMapper $m)
|
||||
{
|
||||
$m->connect('main/flag/profile', array('action' => 'flagprofile'));
|
||||
$m->connect('main/flag/clear', array('action' => 'clearflag'));
|
||||
$m->connect('panel/profile/flag', array('action' => 'adminprofileflag'));
|
||||
$m->connect('main/flag/profile', ['action' => 'flagprofile']);
|
||||
$m->connect('main/flag/clear', ['action' => 'clearflag']);
|
||||
$m->connect('panel/profile/flag', ['action' => 'adminprofileflag']);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user