From bbd6baa8e5b49bb29eee51d5e3bee293ac11e55a Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 30 May 2013 11:00:23 +0200 Subject: [PATCH] minor cleanup --- serendipity_event_ckeditor/serendipity_event_ckeditor.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/serendipity_event_ckeditor/serendipity_event_ckeditor.php b/serendipity_event_ckeditor/serendipity_event_ckeditor.php index 14ca92d3..2019cf3d 100644 --- a/serendipity_event_ckeditor/serendipity_event_ckeditor.php +++ b/serendipity_event_ckeditor/serendipity_event_ckeditor.php @@ -157,11 +157,12 @@ class serendipity_event_ckeditor extends serendipity_event function example() { $installer = $this->get_config('installer'); // Can't use method return value in write context in '' with substr(), get_config() and isset() + $parts = explode(':', $this->checkUpdateVersion[0]); // this is ckeditor only if( isset($installer) && !empty($installer) ) { switch ($installer[0]) { case '4': // this won't happen, since case 2 is true - just a fake - echo '

Check Plugin Update Message: NO CONFIG SET OR NO MATCH -> config_set: "last_'.$package.'_version:'. $match[1].'"

'; // here no vars available + echo '

Check Plugin Update Message: NO CONFIG SET OR NO MATCH -> config_set: "last_'.$parts[0].'_version:'. $parts[1].'"

'; break; case '3': echo '

Installer Update Message: Check Update found false, no unpack needed. Plugin upgrade successfully done!

'; @@ -185,8 +186,8 @@ class serendipity_event_ckeditor extends serendipity_event /** * Check update versions and create config values - * * @access private + * @return boolean */ private function CheckUpdate() {