[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
@@ -26,7 +26,7 @@ class ChooseThemePlugin extends Plugin {
|
||||
const PLUGIN_VERSION = '0.1.0';
|
||||
|
||||
public function onRouterInitialized(URLMapper $m) {
|
||||
$m->connect('main/choosethemesettings', array('action' => 'choosethemesettings'));
|
||||
$m->connect('main/choosethemesettings', ['action' => 'choosethemesettings']);
|
||||
}
|
||||
|
||||
public function onPluginVersion(array &$versions) {
|
||||
|
Reference in New Issue
Block a user