1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-24 23:16:28 +02:00

Custom Menu administration issues

This commit is contained in:
SecretR
2013-02-28 13:40:21 +02:00
parent 5d81b20d33
commit e71b0144a9
2 changed files with 5 additions and 6 deletions

View File

@@ -527,7 +527,7 @@ class e_model extends e_object
* Example: array('route'=>'page/view/index', 'vars' => array('id' => 'page_id', 'sef' => 'page_sef'), 'name' => 'page_title', 'description' => '');
* @var string
*/
protected $_url;
protected $_url = array();
/**
* Runtime cache of parsed from {@link _getData()} keys
@@ -596,6 +596,7 @@ class e_model extends e_object
*/
public function setUrl($url)
{
if(!is_array($url)) $url = array('route' => $url);
$this->_url = $url;
return $this;
}
@@ -617,7 +618,7 @@ class e_model extends e_object
*/
public function url($options = array(), $extended = false)
{
$urldata = $this->getUrl();
$urldata = $this->getUrl();
if(empty($urldata) || !vartrue($urldata['route'])) return ($extended ? array() : null);
$eurl = e107::getUrl();