Skip to content
Code-Schnipsel Gruppen Projekte
Commit 2fec902d erstellt von Florian Bogner's avatar Florian Bogner
Dateien durchsuchen

feat: Added special case treatment for codeTag plugin and enabled quiqqer font...

feat: Added special case treatment for codeTag plugin and enabled quiqqer font awesome editor plugin by default
Übergeordneter 08edc75a
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -11,6 +11,7 @@
"codesnippet",
"codesnippetgeshi",
"codeTag",
"code",
"colorbutton",
"colordialog",
"crossreference",
......@@ -51,6 +52,7 @@
"pre",
"preview",
"print",
"qui-font-awesome",
"save",
"scayt",
"selectall",
......
......@@ -89,10 +89,15 @@ class Manager
continue;
}
$pluginName = $entry;
// Special case, because gitlab gets confused with the dirctory named "codeTag"
if ($entry == "code") {
$pluginName= "codeTag";
}
# Check if/where the plugin is installed
$targetDir = $this->installedPluginDir . "/" . $entry;
if (is_dir($this->activePluginDir . "/" . $entry)) {
$targetDir = $this->activePluginDir . "/" . $entry;
$targetDir = $this->installedPluginDir . "/" . $pluginName;
if (is_dir($this->activePluginDir . "/" . $pluginName)) {
$targetDir = $this->activePluginDir . "/" . $pluginName;
}
if (is_dir($targetDir)) {
......@@ -135,24 +140,31 @@ class Manager
}
foreach (scandir($srcDir) as $entry) {
if ($entry == "." || $entry == "..") {
continue;
}
$pluginName = $entry;
// Special case, because gitlab gets confused with the dirctory named "codeTag"
if ($entry == "code") {
$pluginName= "codeTag";
}
$targetDir = $this->installedPluginDir;
if (in_array($entry, $activePlugins)) {
$targetDir = $this->activePluginDir;
}
if ($entry == "." || $entry == "..") {
continue;
}
if (!is_dir($srcDir . "/" . $entry)) {
continue;
}
if (is_dir($this->installedPluginDir . "/" . $entry)) {
if (is_dir($this->installedPluginDir . "/" . $pluginName)) {
continue;
}
if (is_dir($this->activePluginDir . "/" . $entry)) {
if (is_dir($this->activePluginDir . "/" . $pluginName)) {
continue;
}
......@@ -160,9 +172,10 @@ class Manager
continue;
}
$this->copyDir(
$srcDir . "/" . $entry,
$targetDir . "/" . $entry
$targetDir . "/" . $pluginName
);
}
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren