mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -1634,6 +1634,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
|
||||
/**
|
||||
* Old Admin Navigation Routine.
|
||||
*/
|
||||
/*
|
||||
function sc_admin_navigationOld($parm=null)
|
||||
{
|
||||
|
||||
@@ -1902,7 +1903,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
|
||||
return e107::getNav()->admin('', $active, $menu_vars, $$tmpl, FALSE, FALSE);
|
||||
//return e_admin_men/u('', e_PAGE, $menu_vars, $$tmpl, FALSE, FALSE);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
* New Admin Navigation Routine. v2.1.5
|
||||
|
@@ -317,14 +317,11 @@ class user_shortcodes extends e_shortcode
|
||||
case 'location':
|
||||
return ($boot) ? $tp->toGlyph('fa-map-marker') : '';
|
||||
break;
|
||||
|
||||
|
||||
case 'msn':
|
||||
case 'icq':
|
||||
return ($boot) ? $tp->toGlyph('fa-comment') : '';
|
||||
break;
|
||||
|
||||
case 'msn':
|
||||
return ($boot) ? $tp->toGlyph('fa-comment') : '';
|
||||
break;
|
||||
break;
|
||||
|
||||
default:
|
||||
case 'realname':
|
||||
|
@@ -126,7 +126,7 @@ $nbr_cols = (defined("NEWSCAT_COLS")) ? NEWSCAT_COLS : $nbr_cols;
|
||||
return '';
|
||||
}
|
||||
$cats = array();
|
||||
while ($row = $sql2->db_Fetch())
|
||||
while ($row = $sql2->fetch())
|
||||
{
|
||||
if($row['ccount'] > 0) $cats[$row['category_id']] = $row;
|
||||
}
|
||||
|
@@ -117,9 +117,9 @@ if ($parms[1] == 'value')
|
||||
case EUF_DB_FIELD : // check for db_lookup type
|
||||
$tmp = explode(',',$ueStruct['user_'.$parms[0]]['user_extended_struct_values']);
|
||||
$sql_ue = new db; // Use our own DB object to avoid conflicts
|
||||
if($sql_ue->db_Select($tmp[0],"{$tmp[1]}, {$tmp[2]}","{$tmp[1]} = '{$uVal}'"))
|
||||
if($sql_ue->select($tmp[0],"{$tmp[1]}, {$tmp[2]}","{$tmp[1]} = '{$uVal}'"))
|
||||
{
|
||||
$row = $sql_ue->db_Fetch();
|
||||
$row = $sql_ue->fetch();
|
||||
$ret_data = $row[$tmp[2]];
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user