[pLog-svn] r4519 - plog/trunk/class/template/menu
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Jan 5 13:59:20 GMT 2007
Author: oscar
Date: 2007-01-05 13:59:20 +0000 (Fri, 05 Jan 2007)
New Revision: 4519
Modified:
plog/trunk/class/template/menu/menu.class.php
Log:
getEntryAt does not return by reference, so it doesn't work in PHP. It's been replaced with getNodeAt() that does return by reference
Modified: plog/trunk/class/template/menu/menu.class.php
===================================================================
--- plog/trunk/class/template/menu/menu.class.php 2007-01-05 13:25:47 UTC (rev 4518)
+++ plog/trunk/class/template/menu/menu.class.php 2007-01-05 13:59:20 UTC (rev 4519)
@@ -182,8 +182,9 @@
$currentPath = "";
foreach( $path as $step ) {
if( $step != "" ) {
+ //print($currentPath."/".$step."<br/>");
$currentPath = $currentPath."/".$step;
- $node =& $this->getEntryAt( $this->_prepareEntryPath( $currentPath ));
+ $node =& $this->getNodeAt( $this->_prepareEntryPath( $currentPath ));
// add the new node's orPerms and andPerms
$curOrPerms = $node->getAttribute( "orPerms" );
if( $curOrPerms != "" ) {
@@ -191,7 +192,7 @@
}
$curAndPerms = $node->getAttribute( "andPerms" );
if( $curAndPerms != "" ) {
- $node->setAttribute( "andPerms", $curAndPerms.",".$entry->getAttribute( "andPerms" ));
+ $node->setAttribute( "andPerms", $curAndPerms.",".$entry->getAttribute( "andPerms" ));
}
}
}
More information about the pLog-svn
mailing list