diff --git a/class-MenuEntry.php b/class-MenuEntry.php index ec47725..268f8ea 100644 --- a/class-MenuEntry.php +++ b/class-MenuEntry.php @@ -1,72 +1,72 @@ . /** * Create a menu entry and define it's parent. */ class MenuEntry { /** * Menu unique identifier. * @type string */ public $uid; /** * Identifier of the parent menu. * @type array|string|null */ public $parentUid; /** * Do whatever you want with this. */ public $url; public $name; public $extra; /** * Create a menu entry. */ function __construct($uid, $url = null, $name = null, $parentUid = null, $extra = null) { $this->uid = $uid; $this->url = $url; $this->name = $name; $this->parentUid = $parentUid; $this->extra = $extra; } /** * Call site_page() on the URL. * * @param $full_url boolean * @see site_page() * @return string */ - public function getSitePage( $full_url = true ) { + public function getSitePage( $full_url = false ) { return site_page( $this->url, $full_url ); } public function getExtra($arg, $default = null) { return $this->get($arg, $default); } public function get($arg, $default = null) { if( isset( $this->extra[$arg] ) ) { return $this->extra[$arg]; } return $default; } }