diff --git a/src/QUI/Ckeditor/EventHandler.php b/src/QUI/Ckeditor/EventHandler.php index b1596c2bf2d8ae45b7421703449016c106c93c46..b87c62afc95215e7c41c28c45d0ae2f8c5cb0d93 100644 --- a/src/QUI/Ckeditor/EventHandler.php +++ b/src/QUI/Ckeditor/EventHandler.php @@ -16,7 +16,6 @@ use QUI\Package\Package; */ class EventHandler { - /** * @param Package $Package */ diff --git a/src/QUI/Ckeditor/Plugins/Manager.php b/src/QUI/Ckeditor/Plugins/Manager.php index f69455457d642e24da73df268000d4b4d23b7878..a19f4f4289d975e67eeb9c19f914786da71eb652 100644 --- a/src/QUI/Ckeditor/Plugins/Manager.php +++ b/src/QUI/Ckeditor/Plugins/Manager.php @@ -154,7 +154,7 @@ class Manager } $pluginName = $entry; - // Special case, because gitlab gets confused with the dirctory named "codeTag" + // Special case, because gitlab gets confused with the directory named "codeTag" if ($entry == "code") { $pluginName = "codeTag"; } @@ -165,16 +165,11 @@ class Manager $targetDir = $this->activePluginDir; } - if (!is_dir($srcDir."/".$entry)) { continue; } - if (is_dir($this->installedPluginDir."/".$pluginName)) { - continue; - } - - if (is_dir($this->activePluginDir."/".$pluginName)) { + if (!is_dir($this->activePluginDir."/".$pluginName)) { continue; } @@ -182,6 +177,9 @@ class Manager continue; } + // vorher löschen, da sonst nicht kopiert werden kann + QUI::getTemp()->moveToTemp($targetDir."/".$pluginName); + $this->copyDir( $srcDir."/".$entry, $targetDir."/".$pluginName