| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * |
| 16 | 16 | */ |
| 17 | - const MENU_POSITION_INDEX = 1; | |
| 17 | + const MENU_POSITION_INDEX = 2; | |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * |
| 21 | 21 | */ |
| @@ -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(); |