From bd1b8a09e5eee796a273e1a06f4c82af2ac2a41e Mon Sep 17 00:00:00 2001 From: Grischa Brockhaus Date: Wed, 4 Jul 2012 12:15:14 +0200 Subject: [PATCH] commentSpice: Removed spice from admins comment editor. --- serendipity_event_commentspice/ChangeLog | 1 + .../serendipity_event_commentspice.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/serendipity_event_commentspice/ChangeLog b/serendipity_event_commentspice/ChangeLog index 32831575..1c4d5827 100644 --- a/serendipity_event_commentspice/ChangeLog +++ b/serendipity_event_commentspice/ChangeLog @@ -3,5 +3,6 @@ Version 1.01 * Preview comment is not loosing article promotion selection anymore. * The article selector was not hiding again on invalid URLs (only clearing options). * The internal styling of the article selector is optional now. +* Removed spice from admins comment editor. * Added some css / templating fixes proposed by @yellowled. Thanks! * 2k11 commentform.tpl patchfile changed. Please update if you use it! diff --git a/serendipity_event_commentspice/serendipity_event_commentspice.php b/serendipity_event_commentspice/serendipity_event_commentspice.php index 85175f06..d17d54ad 100644 --- a/serendipity_event_commentspice/serendipity_event_commentspice.php +++ b/serendipity_event_commentspice/serendipity_event_commentspice.php @@ -924,9 +924,12 @@ class serendipity_event_commentspice extends serendipity_event $this->log("avatar_hook filled. " . print_r($eventData,true) . "\n" . print_r($addData, true)); } } - + function printCommentEditExtras(&$eventData, &$addData) { global $serendipity; + + // Don't put extras on admin menu. They are not working there: + if (isset($eventData['GET']['action']) && $eventData['GET']['action']=='admin') return; $config_twitter = $this->get_config('twitterinput','enabled'); $config_announce =$this->get_config('announcerss','disabled'); @@ -965,7 +968,6 @@ class serendipity_event_commentspice extends serendipity_event echo '
' . "\n"; echo '' . "\n"; echo PLUGIN_EVENT_COMMENTSPICE_BOO_FOOTER . '
' . "\n"; - echo 'record' . "\n"; echo '' . "\n"; echo '
' . "\n";