Skip to content
Code-Schnipsel Gruppen Projekte

fix: no longer create backup of plugins on setup

Zusammengeführt Jan Wennrich schlägt vor, dev in master zu mergen.
1 Datei
+ 0
21
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
@@ -27,27 +27,6 @@ class EventHandler
}
$PluginManager = new Manager();
// ----- Begin tempfix -----
// This is a temporary fix for updating the systems
// there was a bug in the utils package which compromised the update process of the ckeditor, thus rendering the ckeditor useless
if (!file_exists(VAR_DIR . "package/quiqqer/ckeditor4/plugins/bin/image/dialogs/image.js")) {
$newFolder = VAR_DIR . "package/quiqqer/ckeditor4/plugins." . time() . ".bak";
rename(
VAR_DIR . "package/quiqqer/ckeditor4/plugins",
$newFolder
);
file_put_contents(
$newFolder . "/README.md",
"This directory was created as backup. If your ckeditor is working as intended you can delete this directory if you do not need it anymore"
);
}
// ----- End tempfix -----
$PluginManager->installPluginsFromSource();
}