PluginProbe
CSS & JavaScript Toolbox / 6.0.9
CSS & JavaScript Toolbox v6.0.9
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | access.points/extensions.accesspoint.php +3 -5 6.06.0.9 View file →
@@ -53,9 +53,9 @@
53 53 add_submenu_page(CJTPlugin::PLUGIN_REQUEST_ID, null, cssJSToolbox::getText('Extensions'), 'administrator', null);
54 54 // Hack Extensions menu item to point to Plugins page!
55 55 $GLOBALS['submenu'][CJTPlugin::PLUGIN_REQUEST_ID][self::MENU_POSITION_INDEX][2] = admin_url('plugins.php?s=' . self::PLUGINS_PAGE_SEARCH_TERM);
56 56 // When plugins page loaded!
57 - add_action('load-plugins.php', array($this, 'route'));
57 + add_action('load-plugins.php', array($this, 'route'), 10, 0);
58 58 }
59 59
60 60 /**
61 61 * put your comment there...
@@ -60,15 +60,13 @@
60 60 /**
61 61 * put your comment there...
62 62 *
63 63 */
64 - public function route() {
64 + public function route($loadView = null, $request = array('view' => 'extensions/plugins-list')) {
65 65 // Set as connected object!
66 66 $this->connected();
67 67 // Load extensions view throughjt the default controller!
68 - $_REQUEST['view'] ='extensions/plugins-list';
69 - // Create controller!
70 - parent::route()
68 + parent::route($loadView, $request)
71 69 // Set Action name!
72 70 ->setAction('extensions')
73 71 // Dispatch the call!
74 72 ->_doAction();