commit d44c5599916250155178cb086f3c9b48be261fe6
parent 696cf3b113acc9783f1648f5dfd7ec14302d552e
Author: markseu <mark2011@mayberg.se>
Date: Wed, 30 Jun 2021 11:12:44 +0200
Updated install extension, support for file actions
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/system/extensions/install.php b/system/extensions/install.php
@@ -2,7 +2,7 @@
// Install extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/install
class YellowInstall {
- const VERSION = "0.8.50";
+ const VERSION = "0.8.51";
const PRIORITY = "1";
public $yellow; // access to API
@@ -269,7 +269,11 @@ class YellowInstall {
$settings = $this->yellow->toolbox->getTextSettings($fileData, "extension");
foreach ($settings as $extension=>$block) {
foreach ($block as $key=>$value) {
- if (strposu($key, "/") && !is_file($key)) $complete = false;
+ if (strposu($key, "/")) {
+ list($entry, $flags) = $this->yellow->toolbox->getTextList($value, ",", 2);
+ if (preg_match("/delete/i", $flags)) continue;
+ if (!is_file($key)) $complete = false;
+ }
}
}
if (count($settings)==0) $complete = false;
diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini
@@ -63,9 +63,9 @@ media/images/photo.jpg: photo.jpg, create, optional
media/thumbnails/photo-100x40.jpg: photo-100x40.jpg, create, optional
Extension: Install
-Version: 0.8.50
+Version: 0.8.51
Description: Install a brand new, shiny website.
-Published: 2021-06-19 23:25:00
+Published: 2021-06-30 11:06:00
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/install
Developer: Datenstrom and various translators
system/extensions/install.php: install.php, create, optional