1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Userclass name tweak

This commit is contained in:
CaMer0n 2009-08-04 15:04:18 +00:00
parent 5ebd168620
commit b7dac9cf59
2 changed files with 18 additions and 5 deletions

View File

@ -9,8 +9,8 @@
* Administration Area - User classes
*
* $Source: /cvs_backup/e107_0.8/e107_admin/userclass2.php,v $
* $Revision: 1.25 $
* $Date: 2009-08-03 18:04:19 $
* $Revision: 1.26 $
* $Date: 2009-08-04 15:04:18 $
* $Author: e107coders $
*
*/
@ -1055,6 +1055,11 @@ class uclass_manager
"<tbody>";
$classes = $sql->db_getList('ALL', FALSE, FALSE);
$types = array(
UC_TYPE_STD => UCSLAN_80,
UC_TYPE_GROUP => UCSLAN_81
);
foreach($classes as $row)
{
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_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_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'>

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $
| $Revision: 1.37 $
| $Date: 2009-08-04 14:36:54 $
| $Revision: 1.38 $
| $Date: 2009-08-04 15:04:18 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@ -642,6 +642,13 @@ class user_class
{
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 '';
}