ソースを参照

Updated API, store current filter value

markseu 3 年 前
コミット
be57613d7e
2 ファイル変更4 行追加3 行削除
  1. 2 1
      system/extensions/core.php
  2. 2 2
      system/extensions/update-current.ini

+ 2 - 1
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);
         }

+ 2 - 2
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