| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | // Only if installed! |
| 28 | 28 | if (CJTPlugin::getInstance()->isInstalled()) { |
| 29 | 29 | // Don't bother doing this stuff if the current user lacks permissions |
| 30 | 30 | if ((current_user_can('edit_posts') || current_user_can('edit_pages')) && (get_user_option('rich_editing') == 'true')) { |
| 31 | - add_filter('mce_external_plugins', array($this, 'route')); | |
| 31 | + add_filter('mce_external_plugins', array($this, 'registerButton')); | |
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| @@ -37,12 +37,12 @@ | ||
| 37 | 37 | * put your comment there... |
| 38 | 38 | * |
| 39 | 39 | * @param mixed $plugins |
| 40 | 40 | */ |
| 41 | - public function route($plugins) { | |
| 41 | + public function registerButton($plugins) { | |
| 42 | 42 | // Load tinymce/shortcodes view through default controller! |
| 43 | 43 | $this->controllerName = 'default'; |
| 44 | - parent::route(array('view' => 'tinymce/shortcodes')) | |
| 44 | + $this->route(null, array('view' => 'tinymce/shortcodes')) | |
| 45 | 45 | // Display |
| 46 | 46 | ->setAction('display') |
| 47 | 47 | ->_doAction(); |
| 48 | 48 | // Don't register anything, we just use this filter as Action. |