1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

PHP8 Compatibility and code cleanup.

This commit is contained in:
Cameron
2020-12-08 12:21:12 -08:00
parent a094a8fb73
commit afaac88003
49 changed files with 264 additions and 225 deletions

View File

@@ -174,9 +174,9 @@ class bb_youtube extends e_bb_base
$yID = preg_replace('/[^0-9a-z]/i', '', $picRef);
if (($yID != $picRef) || (strlen($yID) > 20))
{ // Possible hack attempt
}
//if (($yID != $picRef) || (strlen($yID) > 20))
// { // Possible hack attempt
// }
// $params = array_merge($params, $bbpars); // Any parameters set in bbcode override those in HTML
// Could check for valid array indices here
$paramString = implode('&', $params);

View File

@@ -1297,10 +1297,10 @@ class admin_shortcodes
}
$text .= "</ul>";
if($parm == 'list')
{
// if($parm == 'list')
// {
// $text = str_replace("<div style='padding-bottom: 2px;'>","<li>",$text);;
}
// }
// $text .= "\n\t\t\t\t\t</div>";
@@ -1764,10 +1764,10 @@ Inverse 10 <span class="badge badge-inverse">10</span>
{
$plug_vars = $plug->plug_vars;
if($row['plugin_path']=='calendar_menu')
{
// if($row['plugin_path']=='calendar_menu')
// {
// print_a($plug_vars);
}
// }
// moved to boot.php
// e107::loadLanFiles($row['plugin_path'], 'admin');
@@ -1891,10 +1891,10 @@ Inverse 10 <span class="badge badge-inverse">10</span>
// ------------------------------------------------------------------
//added option to disable leave/logout (ll) - more flexibility for theme developers
if(!vartrue($parms['disable_ll']))
{
// if(!vartrue($parms['disable_ll']))
// {
// $menu_vars += $this->getOtherNav('home');
}
// }
// print_a($menu_vars);

View File

@@ -239,10 +239,10 @@ class usersettings_shortcodes extends e_shortcode
foreach ($ucList as $cid)
{
if (check_class($cid, $this->var['user_class'])) $is_checked[$cid] = $cid;
if(isset($_POST['class']))
{
// if(isset($_POST['class']))
// {
// $is_checked[$cid] = in_array($cid, $_POST['class']);
}
// }
}
$inclass = implode(',',$is_checked);

View File

@@ -128,7 +128,7 @@ class sitelinks_alt
return $text;
}
static function adnav_main($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $params, $cat_open = FALSE)
static function adnav_main($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $params=array(), $cat_open = FALSE)
{
$tp = e107::getParser();