diff --git a/serendipity_event_ckeditor/ChangeLog b/serendipity_event_ckeditor/ChangeLog index b18ae132..3e7c915e 100644 --- a/serendipity_event_ckeditor/ChangeLog +++ b/serendipity_event_ckeditor/ChangeLog @@ -1,7 +1,9 @@ 1.3.1: ----- - * Minor changes in the workflow, while sync came to early - * Fixed bug not showing media library button if not using other hooked-in plugins (thanks to ICE) + * Better workflow between nuggets and entry textareas + * Fixed bug not showing media library button, if not using other hooked-in plugins (thanks to ICE) + * Fixed bug not proceeding image button path correctly, with non_rewrite_mode sites (thanks to ICE) + * Enhanced old (multiple) zip file removement 1.3.0: ----- diff --git a/serendipity_event_ckeditor/serendipity_event_ckeditor.php b/serendipity_event_ckeditor/serendipity_event_ckeditor.php index 71b8d9d2..66604a63 100644 --- a/serendipity_event_ckeditor/serendipity_event_ckeditor.php +++ b/serendipity_event_ckeditor/serendipity_event_ckeditor.php @@ -27,35 +27,35 @@ class serendipity_event_ckeditor extends serendipity_event * @access public * @var string */ - public $title = PLUGIN_EVENT_CKEDITOR_NAME; + public $title = PLUGIN_EVENT_CKEDITOR_NAME; /** * Access property cke_path * @access protected * @var string */ - protected $cke_path = CKEDITOR_DIRNAME_PLUGIN_PATH; + protected $cke_path = CKEDITOR_DIRNAME_PLUGIN_PATH; /** * Access property cke_dir * @access protected * @var string */ - protected $cke_dir = CKEDITOR_DIRNAME_CKEDITOR_PATH; + protected $cke_dir = CKEDITOR_DIRNAME_CKEDITOR_PATH; /** * Access property cke_zipfile * @access protected * @var string */ - protected $cke_zipfile = 'ckeditor_4.1.3_standard-plus.zip'; + protected $cke_zipfile = 'ckeditor_4.1.3_standard-plus.zip'; /** * Access property checkUpdateVersion * Verify release package versions - do update on upgrades! * @var array */ - protected $checkUpdateVersion = array('ckeditor:4.1.3', 'kcfinder:2.52-2'); + protected $checkUpdateVersion = array('ckeditor:4.1.3', 'kcfinder:2.52-2'); /** * Access property revisionPackage @@ -90,7 +90,12 @@ class serendipity_event_ckeditor extends serendipity_event $zip->extractTo($this->cke_path); $zip->close(); $this->set_config('installer', '2-'.date('Ymd-H:i:s')); // returned by string[0], which is better than substr in this case - @unlink($this->cke_path . '/ckeditor_4.1.2_standard-plus.zip'); // remove old zip file + // Check to remove every old ckeditor_(*)_standard-plus.zip files + foreach (glob($this->cke_path . '/*.zip') as $filename) { + if($this->cke_path . '/' . $this->cke_zipfile != $filename) { + @unlink($filename); + } + } } else { $this->set_config('installer', '1-'.date('Ymd-H:i:s')); return false; @@ -180,7 +185,7 @@ class serendipity_event_ckeditor extends serendipity_event echo PLUGIN_EVENT_CKEDITOR_REVISION_TITLE; echo "\n