mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 23:36:29 +02:00
More PHP 8.1 fixes.
This commit is contained in:
@@ -29,7 +29,7 @@ class adminDownload extends download
|
||||
function __construct()
|
||||
{
|
||||
global $pref;
|
||||
parent::download();
|
||||
parent::__construct();
|
||||
$this->userclassOptions = 'blank,nobody,guest,public,main,admin,member,classes';
|
||||
|
||||
// Save basic search string
|
||||
|
@@ -62,7 +62,7 @@ class plugin_featurebox_item extends e_model
|
||||
$ret = $tp->toHTML($this->get('fb_title'), false, 'TITLE');
|
||||
if(isset($parm['url']) && $this->get('fb_imageurl'))
|
||||
{
|
||||
return '<a id="featurebox-titleurl-'.$this->getId().'" href="'.$tp->replaceConstants($this->get('fb_imageurl'), 'full').'" title="'.$tp->toAttribute($this->get('fb_title')).'" rel="'.$tp->toAttribute(vartrue($parm['rel'], '')).'">'.$ret.'</a>';
|
||||
return '<a id="featurebox-titleurl-'.$this->getId().'" href="'.$tp->replaceConstants($this->get('fb_imageurl'), 'full').'" title="'.$tp->toAttribute($this->get('fb_title')).'" rel="'.$tp->toAttribute(vartrue($parm['rel'])).'">'.$ret.'</a>';
|
||||
}
|
||||
|
||||
return $ret;
|
||||
@@ -98,7 +98,7 @@ class plugin_featurebox_item extends e_model
|
||||
|
||||
|
||||
|
||||
return '<a '.$buttonCls.'id="featurebox-url-'.$this->getId().'" href="'.$url.'" title="'.$alt.'" rel="'.$tp->toAttribute(vartrue($parm['rel'], '')).'">'.$title.'</a>';
|
||||
return '<a '.$buttonCls.'id="featurebox-url-'.$this->getId().'" href="'.$url.'" title="'.$alt.'" rel="'.$tp->toAttribute(vartrue($parm['rel'])).'">'.$title.'</a>';
|
||||
}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ class plugin_featurebox_item extends e_model
|
||||
|
||||
$imageSrc = ($parm != 'placeholder') ? $this->get('fb_image') : "";
|
||||
|
||||
if($tp->thumbWidth > 100 || $tp->thumbHeight > 100) //Guessing it's a featurebox image. Use {SETIMAGE} inside theme.php to configure.
|
||||
if($tp->thumbWidth() > 100 || $tp->thumbHeight() > 100) //Guessing it's a featurebox image. Use {SETIMAGE} inside theme.php to configure.
|
||||
{
|
||||
$src = $tp->thumbUrl($imageSrc); //XXX TODO TBD Add a pref to use without resizing? Or, detect {SETIMAGE} in template to enable?
|
||||
}
|
||||
|
@@ -13,7 +13,6 @@
|
||||
|
||||
$BBCODE_TEMPLATE['forum'] = "
|
||||
<div class='field-spacer'><!-- --></div>
|
||||
{BB=link}{BB=b}{BB=i}{BB=u}{BB=img}{BB=format}{BB=left}{BB=center}{BB=right}{BB=justify}
|
||||
{BB=list}{BB=fontcol}{BB=fontsize}{BB=emotes}{BB=youtube}
|
||||
{BB=link}{BB=b}{BB=i}{BB=u}{BB=img}{BB=format}{BB=left}{BB=center}{BB=right}{BB=justify}{BB=list}{BB=fontcol}{BB=fontsize}{BB=emotes}{BB=youtube}
|
||||
<div class='field-spacer'><!-- --></div>
|
||||
";
|
||||
|
@@ -14,11 +14,11 @@ $HERO_TEMPLATE['default']['header'] = '<!-- Hero Menu: header -->{SETIMAGE: w=4
|
||||
|
||||
$HERO_TEMPLATE['default']['footer'] = '</div><div class="carousel-controls">
|
||||
<!-- Controls -->
|
||||
<a title="{LAN=PREVIOUS}" class="left carousel-left carousel-control animated zoomIn animation-delay-30" href="#carousel-hero" role="button" data-slide="prev" data-bs-slide="prev">
|
||||
<a title="{LAN=PREVIOUS}" class="left carousel-left carousel-control carousel-control-prev animated zoomIn animation-delay-30" href="#carousel-hero" role="button" data-slide="prev" data-bs-slide="prev">
|
||||
<i class="fa fa-chevron-left fa-fw"></i>
|
||||
<span class="sr-only">{LAN=PREVIOUS}</span>
|
||||
</a>
|
||||
<a title="{LAN=NEXT}" class="right carousel-right carousel-control animated zoomIn animation-delay-30" href="#carousel-hero" role="button" data-slide="next" data-bs-slide="next">
|
||||
<a title="{LAN=NEXT}" class="right carousel-right carousel-control carousel-control-next animated zoomIn animation-delay-30" href="#carousel-hero" role="button" data-slide="next" data-bs-slide="next">
|
||||
<i class="fa fa-chevron-right fa-fw"></i>
|
||||
<span class="sr-only">{LAN=NEXT}</span>
|
||||
</a>
|
||||
|
@@ -644,7 +644,7 @@ class newsletter
|
||||
if($nl_row = $nl_sql->fetch())
|
||||
{
|
||||
$subscribers_list = explode(chr(1), trim($nl_row['newsletter_subscribers']));
|
||||
sort($subscriber_list);
|
||||
sort($subscribers_list);
|
||||
$subscribers_total_count = count($subscribers_list) - 1; // Get a null entry as well
|
||||
}
|
||||
if ($subscribers_total_count<1)
|
||||
|
@@ -266,7 +266,7 @@ class rss_ui extends e_admin_ui
|
||||
|
||||
if(!$render)
|
||||
{
|
||||
$this->show_message(RSS_LAN_ADMIN_11, RSS_LAN_ERROR_6);
|
||||
e107::getMessage()->addWarning(RSS_LAN_ERROR_6);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user