mirror of
https://github.com/e107inc/e107.git
synced 2025-07-13 19:16:22 +02:00
Userclass name tweak
This commit is contained in:
@ -9,8 +9,8 @@
|
|||||||
* Administration Area - User classes
|
* Administration Area - User classes
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/userclass2.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/userclass2.php,v $
|
||||||
* $Revision: 1.25 $
|
* $Revision: 1.26 $
|
||||||
* $Date: 2009-08-03 18:04:19 $
|
* $Date: 2009-08-04 15:04:18 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -1055,6 +1055,11 @@ class uclass_manager
|
|||||||
|
|
||||||
"<tbody>";
|
"<tbody>";
|
||||||
$classes = $sql->db_getList('ALL', FALSE, FALSE);
|
$classes = $sql->db_getList('ALL', FALSE, FALSE);
|
||||||
|
$types = array(
|
||||||
|
UC_TYPE_STD => UCSLAN_80,
|
||||||
|
UC_TYPE_GROUP => UCSLAN_81
|
||||||
|
);
|
||||||
|
|
||||||
foreach($classes as $row)
|
foreach($classes as $row)
|
||||||
{
|
{
|
||||||
if(varset($row['userclass_icon']))
|
if(varset($row['userclass_icon']))
|
||||||
@ -1072,7 +1077,8 @@ class uclass_manager
|
|||||||
$text .= (in_array("userclass_editclass",$this->fieldpref)) ? "<td>".r_userclass_name($row['userclass_editclass'])."</td>" : "";
|
$text .= (in_array("userclass_editclass",$this->fieldpref)) ? "<td>".r_userclass_name($row['userclass_editclass'])."</td>" : "";
|
||||||
$text .= (in_array("userclass_parent",$this->fieldpref)) ? "<td>".(r_userclass_name($row['userclass_parent']))."</td>" : "";
|
$text .= (in_array("userclass_parent",$this->fieldpref)) ? "<td>".(r_userclass_name($row['userclass_parent']))."</td>" : "";
|
||||||
$text .= (in_array("userclass_visibility",$this->fieldpref)) ? "<td>".(r_userclass_name($row['userclass_visibility']))."</td>" : "";
|
$text .= (in_array("userclass_visibility",$this->fieldpref)) ? "<td>".(r_userclass_name($row['userclass_visibility']))."</td>" : "";
|
||||||
$text .= (in_array("userclass_type",$this->fieldpref)) ? "<td>".($row['userclass_type'])."</td>" : "";
|
$text .= (in_array("userclass_type",$this->fieldpref)) ? "<td>".($types[$row['userclass_type']])."</td>" : "";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$text .= "<td class='center'>
|
$text .= "<td class='center'>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $
|
||||||
| $Revision: 1.37 $
|
| $Revision: 1.38 $
|
||||||
| $Date: 2009-08-04 14:36:54 $
|
| $Date: 2009-08-04 15:04:18 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@ -642,6 +642,13 @@ class user_class
|
|||||||
{
|
{
|
||||||
return $this->fixed_classes[$id];
|
return $this->fixed_classes[$id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($id < 0)
|
||||||
|
{
|
||||||
|
$val = abs($id);
|
||||||
|
$name = isset($this->class_tree[$val]['userclass_name']) ? $this->class_tree[$val]['userclass_name'] : $this->fixed_classes[$val];
|
||||||
|
return str_replace("--CLASS--", $name, UC_LAN_INVERT);
|
||||||
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user