[dev] [patch] fix for Perms/UI.php method call error.
Jason M. Felice
jfelice at cronosys.com
Fri Nov 7 06:55:50 PST 2003
..caused by renaming of Perms::_prefs.
--
Jason M. Felice
Cronosys, LLC <http://www.cronosys.com/>
216.221.4600 x302
-------------- next part --------------
epm diff lib/Perms/UI.php
--- lib/Perms/UI.php 2003-11-07 09:34:52.000000000 -0500
+++ lib/Perms/UI.php 2003-11-07 09:35:27.000000000 -0500
@@ -34,7 +34,7 @@
require_once HORDE_BASE . '/lib/Tree.php';
/* Get the perms tree. */
- $nodes = $this->_perms->_perms->get(CATEGORY_FORMAT_FLAT, -1, true);
+ $nodes = $this->_perms->_categories->get(CATEGORY_FORMAT_FLAT, -1, true);
$icondir = array('icondir' => $GLOBALS['registry']->getParam('graphics'));
$perms_node = $icondir + array('icon' => 'perms.gif');
@@ -62,7 +62,7 @@
$edit_link = Horde::link(Util::addParameter($edit, 'cid', $cid), _("Edit Permission")) . $edit_img . '</a>';
$delete_link = Horde::link(Util::addParameter($delete, 'cid', $cid), _("Delete Permission")) . $delete_img . '</a>';
- $parent_id = $this->_perms->_perms->getParent($node);
+ $parent_id = $this->_perms->_categories->getParent($node);
$perms_extra = array($add_link, $edit_link, $delete_link);
$tree->addNode($cid, $parent_id, Category::getShortName($node), substr_count($node, ':') + 1, false, $perms_node + $node_class, $perms_extra);
}
More information about the dev
mailing list