Core update (better file API)

This commit is contained in:
markseu 2015-08-17 22:14:38 +02:00
parent da29f9c383
commit 7d71bc481b
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
Yellow 0.5.30
Yellow 0.5.31
=============
[![Yellow](https://raw.githubusercontent.com/wiki/datenstrom/yellow/images/yellow.jpg)](http://datenstrom.se/yellow)

View file

@ -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;