Core update (multi language dust removal)

This commit is contained in:
markseu 2015-01-06 17:21:35 +01:00
parent de63d771c7
commit 929af69d74
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
Yellow 0.4.17
Yellow 0.4.18
=============
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/markseu/yellowcms)

View file

@ -5,7 +5,7 @@
// Yellow main class
class Yellow
{
const Version = "0.4.17";
const Version = "0.4.18";
var $page; //current page
var $pages; //pages from file system
var $config; //configuration
@ -879,9 +879,9 @@ class YellowPages
}
// Return page collection with all pages from file system
function index($showInvisible = false, $showLanguages = false, $levelMax = 0)
function index($showInvisible = false, $showMulti = false, $levelMax = 0)
{
$rootLocation = $showLanguages ? "" : $this->getRootLocation($this->yellow->page->location);
$rootLocation = $showMulti ? "" : $this->getRootLocation($this->yellow->page->location);
return $this->findChildrenRecursive($rootLocation, $showInvisible, $levelMax);
}
@ -907,7 +907,7 @@ class YellowPages
}
// Return page collection with multiple languages
function translation($location, $absoluteLocation = false, $showInvisible = false)
function multi($location, $absoluteLocation = false, $showInvisible = false)
{
$pages = new YellowPageCollection($this->yellow);
if($absoluteLocation) $location = substru($location, strlenu($this->yellow->page->base));