[geeklog-cvs] geeklog: Fix constructor in navbar class (someone got confused w...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Apr 29 09:55:26 EDT 2012
changeset 8645:4cf2b864925c
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/4cf2b864925c
user: Rouslan Placella <rouslan at placella.com>
date: Sun Apr 29 14:54:25 2012 +0100
description:
Fix constructor in navbar class (someone got confused with Java here...)
diffstat:
system/classes/navbar.class.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r bdf51ec7b5a3 -r 4cf2b864925c system/classes/navbar.class.php
--- a/system/classes/navbar.class.php Sun Apr 29 12:46:23 2012 +0100
+++ b/system/classes/navbar.class.php Sun Apr 29 14:54:25 2012 +0100
@@ -108,7 +108,7 @@
* Constructor
*
*/
- function navbar()
+ function __construct()
{
}
@@ -157,7 +157,7 @@
for ($i=1; $i <= count($this->_menuitems); $i++) {
$label = key($this->_menuitems);
$linkurl = current($this->_menuitems);
- if ( is_array($this->_onclick) AND array_key_exists($label,$this->_onclick) ) {
+ if ( is_array($this->_onclick) && array_key_exists($label,$this->_onclick) ) {
$onclick = " onclick='{$this->_onclick[$label]}'";
$navtemplate->set_var( 'onclick', $onclick);
$navtemplate->set_var( 'link', ($linkurl == '') ? '#' : $linkurl);
More information about the geeklog-cvs
mailing list