1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-18 19:55:12 -08:00
parent 2b8a3cff60
commit 5b82c292b1
80 changed files with 1888 additions and 1731 deletions

View File

@@ -172,7 +172,7 @@ e107::coreLan('userclass2', true);
e107::getUserClass()->clearCache();
}
public function afterDelete($data,$id, $check = false)
public function afterDelete($deleted_data,$id, $deleted_check = false)
{
e107::getUserClass()->clearCache();
}
@@ -365,16 +365,11 @@ e107::coreLan('userclass2', true);
<table class='table table-bordered adminform'>
<tr><td>".UCSLAN_43."</td><td>";
if (count($icn) > 0)
{
// $text .= implode(', ',$icn);
}
else
if (count($icn) < 1)
{
$text .= LAN_NONE;
}
if ($class_text)
{
$text .= $class_text."</td></tr><tr><td>";
@@ -488,11 +483,12 @@ e107::coreLan('userclass2', true);
function userclass_perms($curVal,$mode)
{
if($mode == 'read')
{
// if($mode == 'read')
// {
// $uid = $this->getController()->getModel()->get('user_id');
// return e107::getUserPerms()->renderPerms($curVal,$uid);
}
// }
if($mode == 'write')
{
$prm = e107::getUserPerms();
@@ -500,7 +496,7 @@ e107::coreLan('userclass2', true);
}
return '';
return null;
}
}