mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Issue #2846 LAN vars cleanup
This commit is contained in:
@@ -494,7 +494,7 @@ class user_class
|
||||
if($k != e_UC_PUBLIC && $k != e_UC_NOBODY && $k != e_UC_READONLY) // remove everyone, nobody and readonly from list.
|
||||
{
|
||||
$s = ($curval == ('-'.$k) && $curval !== '') ? "selected='selected'" : '';
|
||||
$text .= "<option class='uc-select-inverted' value='-".$k."' ".$s.">".str_replace("--CLASS--", $v, UC_LAN_INVERT)."</option>\n";
|
||||
$text .= "<option class='uc-select-inverted' value='-".$k."' ".$s.">".str_replace("[x]", $v, UC_LAN_INVERT)."</option>\n";
|
||||
}
|
||||
}
|
||||
$text .= "</optgroup>\n";
|
||||
@@ -790,7 +790,7 @@ class user_class
|
||||
$ucString = $this->class_tree[$classIndex]['userclass_name'];
|
||||
if ($classSign == '-')
|
||||
{
|
||||
$ucString = str_replace('--CLASS--', $ucString, UC_LAN_INVERT);
|
||||
$ucString = str_replace('[x]', $ucString, UC_LAN_INVERT);
|
||||
}
|
||||
return "<option value='{$classSign}{$classIndex}'{$sel}{$style}>".$prefix.$ucString."</option>\n";
|
||||
}
|
||||
@@ -826,7 +826,7 @@ class user_class
|
||||
|
||||
if ($classSign == '-')
|
||||
{
|
||||
$ucString = str_replace('--CLASS--', $ucString, UC_LAN_INVERT);
|
||||
$ucString = str_replace('[x]', $ucString, UC_LAN_INVERT);
|
||||
}
|
||||
|
||||
$checked = in_array($classnum, $tmp) ? true : false;
|
||||
@@ -866,7 +866,7 @@ class user_class
|
||||
|
||||
if ($classSign == '-')
|
||||
{
|
||||
$ucString = str_replace('--CLASS--', $ucString, UC_LAN_INVERT);
|
||||
$ucString = str_replace('[x]', $ucString, UC_LAN_INVERT);
|
||||
}
|
||||
|
||||
$description = $ucString.' ('.$this->class_tree[$classIndex]['userclass_description'].")";
|
||||
@@ -928,7 +928,7 @@ class user_class
|
||||
{
|
||||
//$val = abs($id);
|
||||
//$name = isset($this->class_tree[$val]['userclass_name']) ? $this->class_tree[$val]['userclass_name'] : $this->fixed_classes[$val];
|
||||
$ucString = str_replace('--CLASS--', $ucString, UC_LAN_INVERT);
|
||||
$ucString = str_replace('[x]', $ucString, UC_LAN_INVERT);
|
||||
}
|
||||
return $ucString;
|
||||
}
|
||||
|
Reference in New Issue
Block a user