Core update (better file API)
This commit is contained in:
parent
da29f9c383
commit
7d71bc481b
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
Yellow 0.5.30
|
||||
Yellow 0.5.31
|
||||
=============
|
||||
[](http://datenstrom.se/yellow)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Yellow main class
|
||||
class Yellow
|
||||
{
|
||||
const Version = "0.5.30";
|
||||
const Version = "0.5.31";
|
||||
var $page; //current page
|
||||
var $pages; //pages from file system
|
||||
var $files; //files from file system
|
||||
|
@ -965,7 +965,7 @@ class YellowPageCollection extends ArrayObject
|
|||
$array = array();
|
||||
foreach($this->getArrayCopy() as $page)
|
||||
{
|
||||
if(preg_match($regex, basename($page->fileName))) array_push($array, $page);
|
||||
if(preg_match($regex, $page->fileName)) array_push($array, $page);
|
||||
}
|
||||
$this->exchangeArray($array);
|
||||
return $this;
|
||||
|
|
Loading…
Add table
Reference in a new issue