mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
Code optimization and cleaning
This commit is contained in:
@@ -381,7 +381,7 @@ class usersettings_shortcodes extends e_shortcode
|
||||
|
||||
foreach($catList as $cat)
|
||||
{
|
||||
cachevars("extendedcat_{$cat['user_extended_struct_id']}", $cat);
|
||||
e107::setRegistry("extendedcat_{$cat['user_extended_struct_id']}", $cat);
|
||||
$text = $this->sc_userextended_cat($cat['user_extended_struct_id']);
|
||||
$ret .= $text;
|
||||
$catName = vartrue($cat['user_extended_struct_text'], $cat['user_extended_struct_name']);
|
||||
@@ -425,7 +425,7 @@ class usersettings_shortcodes extends e_shortcode
|
||||
return "";
|
||||
}
|
||||
$ret = "";
|
||||
$catInfo = getcachedvars("extendedcat_{$parm}");
|
||||
$catInfo = e107::getRegistry("extendedcat_{$parm}");
|
||||
if(!$catInfo)
|
||||
{
|
||||
$qry = "
|
||||
@@ -456,7 +456,7 @@ class usersettings_shortcodes extends e_shortcode
|
||||
$fieldList = $sql->db_getList();
|
||||
foreach($fieldList as $field)
|
||||
{
|
||||
cachevars("extendedfield_{$field['user_extended_struct_name']}", $field);
|
||||
e107::setRegistry("extendedfield_{$field['user_extended_struct_name']}", $field);
|
||||
//TODO use $this instead of parseTemplate();
|
||||
$ret .= $this->sc_userextended_field($field['user_extended_struct_name']);
|
||||
// $ret .= $tp->parseTemplate("{USEREXTENDED_FIELD={$field['user_extended_struct_name']}}", TRUE, $usersettings_shortcodes);
|
||||
@@ -509,7 +509,7 @@ class usersettings_shortcodes extends e_shortcode
|
||||
|
||||
$ret = "";
|
||||
|
||||
$fInfo = getcachedvars("extendeddata_{$parm}");
|
||||
$fInfo = e107::getRegistry("extendeddata_{$parm}");
|
||||
|
||||
if(!$fInfo)
|
||||
{
|
||||
|
@@ -584,7 +584,7 @@ function nextprev_shortcode($parm = '')
|
||||
|
||||
|
||||
|
||||
if($cached_parms = getcachedvars('nextprev'))
|
||||
if($cached_parms = e107::getRegistry('nextprev'))
|
||||
{
|
||||
$tmp = $cached_parms;
|
||||
foreach($tmp as $key => $val)
|
||||
|
Reference in New Issue
Block a user