commit be57613d7ee3fe0a45b5ec2c3d49ed70a39c1c1d
parent a9e1240a038dd0d70c3172f2bf4e9e514e6bcff9
Author: markseu <mark2011@mayberg.se>
Date: Mon, 25 Apr 2022 13:46:54 +0200
Updated API, store current filter value
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/system/extensions/core.php b/system/extensions/core.php
@@ -2,7 +2,7 @@
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
class YellowCore {
- const VERSION = "0.8.72";
+ const VERSION = "0.8.73";
const RELEASE = "0.8.19";
public $page; // current page
public $content; // content files
@@ -1008,6 +1008,7 @@ class YellowPageCollection extends ArrayObject {
// Filter page collection by location or file
public function match($regex = "/.*/", $filterByLocation = true) {
$array = array();
+ $this->filterValue = $regex;
foreach ($this->getArrayCopy() as $page) {
if (preg_match($regex, $filterByLocation ? $page->location : $page->fileName)) array_push($array, $page);
}
diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini
@@ -21,11 +21,11 @@ Tag: feature
system/extensions/command.php: command.php, create, update
Extension: Core
-Version: 0.8.72
+Version: 0.8.73
Description: Core functionality of the website.
DocumentationUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
-Published: 2022-04-20 22:34:35
+Published: 2022-04-25 13:22:21
Developer: Datenstrom
Tag: feature
system/extensions/core.php: core.php, create, update