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/tinymce.accesspoint.php +3 -3 6.06.0.9 View file →
@@ -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.