cvs: pear /LiveUser_Admin/Perm Complex.php
| From: | Lukas Smith | Date: | Sun, 17 Apr 2005 18:40:44 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Perm Complex.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31239@lists.php.net to get a copy of this message | ||
lsmith Sun Apr 17 14:40:44 2005 EDT
Modified files:
/pear/LiveUser_Admin/Perm Complex.php
Log:
- typo fix: hierachy -> hierarchy (bug #4150)
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.58&r2=1.59&ty=u
Index: pear/LiveUser_Admin/Perm/Complex.php
diff -u pear/LiveUser_Admin/Perm/Complex.php:1.58 pear/LiveUser_Admin/Perm/Complex.php:1.59
--- pear/LiveUser_Admin/Perm/Complex.php:1.58 Wed Apr 6 12:30:17 2005
+++ pear/LiveUser_Admin/Perm/Complex.php Sun Apr 17 14:40:43 2005
@@ -57,7 +57,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: Complex.php,v 1.58 2005/04/06 16:30:17 lsmith Exp $
+ * @version CVS: $Id: Complex.php,v 1.59 2005/04/17 18:40:43 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -606,10 +606,10 @@
* subgroups - defaults to false
* If subgroups should be included, if false then it acts same as the
* medium container getGroups, if set to true it will return all subgroups
- * like they are directly assigned, if set to 'hierachy' it will place
+ * like they are directly assigned, if set to 'hierarchy' it will place
* a tree of the subgroups under the array key 'subgroups'
*
- * note that 'hierachy' requires 'rekey' enabled, 'group' is
disabled,
+ * note that 'hierarchy' requires 'rekey' enabled, 'group' is
disabled,
* 'select' set to 'all' and the first field needs to be
'group_id'
*
* rekey = defaults to false
@@ -644,8 +644,8 @@
return parent::getGroups($params);
}
- if ($subgroup === 'hierachy') {
- return $this->_getGroupsWithHierachy($params);
+ if ($subgroup === 'hierarchy') {
+ return $this->_getGroupsWithHierarchy($params);
}
return $this->_getGroupsWithSubgroups($params);
@@ -708,7 +708,7 @@
/**
* Helper method to fetch all groups including the subgroups in a
- * hierachy tree structure
+ * hierarchy tree structure
*
* @param array $params
* @return boolean | array
@@ -716,7 +716,7 @@
* @access private
*/
- function _getGroupsWithHierachy($params)
+ function _getGroupsWithHierarchy($params)
{
if ((!isset($params['rekey']) || !$params['rekey'])
|| (isset($params['group']) && $params['group'])
@@ -725,7 +725,7 @@
) {
$this->_stack->push(
LIVEUSER_ADMIN_ERROR, 'exception',
- array('msg' => "Setting 'subgroups' to
'hierachy' is only allowed if 'rekey' is enabled, ".
+ array('msg' => "Setting 'subgroups' to
'hierarchy' is only allowed if 'rekey' is enabled, ".
"'group' is disabled, 'select' is 'all' and
the first field is 'group_id'")
);
return false;
@@ -760,7 +760,7 @@
foreach ($subgroups as $group_id => $subgroup_ids) {
$tmp_params = $params;
- $tmp_params['subgroups'] = 'hierachy';
+ $tmp_params['subgroups'] = 'hierarchy';
$tmp_params['filters'] = array('group_id' => $subgroup_ids);
$subgroup_data = parent::getGroups($tmp_params);
if ($subgroup_data === false) {