summaryrefslogtreecommitdiff
path: root/core/libraries/Menu.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Menu.php')
-rw-r--r--core/libraries/Menu.php23
1 files changed, 9 insertions, 14 deletions
diff --git a/core/libraries/Menu.php b/core/libraries/Menu.php
index c1426e87..6f1114a9 100644
--- a/core/libraries/Menu.php
+++ b/core/libraries/Menu.php
@@ -17,19 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-class Menu_Item {
- protected $_text;
- protected $_url;
-
- function __constructor($text, $url="#") {
- $this->_text = $text;
- $this->_url = $url;
- }
-
- function __toString() {
- return "<li><a href=\"$this->_url\">$this->_text</a></li>";
- }
-}
class Menu_Core {
protected $_text;
@@ -89,7 +76,15 @@ class Menu_Core {
public function __toString() {
$items_html = array();
if (!empty($this->_text)) {
- $items_html[] = "<li><a href=\"$this->_url\">$this->_text</a>";
+ if ($this->_url[0] == "#") {
+ $class = "class=\"gDialogLink\"";
+ $url = substr($this->_url, 1);
+ } else {
+ $class = "";
+ $url = $this->_url;
+ }
+
+ $items_html[] = "<li><a $class href=\"$url\">$this->_text</a>";
}
if (!empty($this->_items)) {