1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

PHP8 Plugin code cleanup

This commit is contained in:
Cameron
2021-01-21 09:38:38 -08:00
parent 9e0d014e39
commit f055b49d91
83 changed files with 753 additions and 675 deletions

View File

@@ -23,7 +23,7 @@ e107::plugLan('download', 'front', true);
*/
class download_shortcodes extends e_shortcode
{
public $qry;
public $qry = array();
public $dlsubrow;
public $dlsubsubrow;
public $mirror;
@@ -45,7 +45,9 @@ class download_shortcodes extends e_shortcode
{
$breadcrumb = array();
switch ($this->qry['action'])
$action = varset($this->qry['action']);
switch ($action)
{
case 'mirror':
$breadcrumb[] = array('text' => LAN_PLUGIN_DOWNLOAD_NAME, 'url' => e107::url('download', 'index'));
@@ -71,7 +73,11 @@ class download_shortcodes extends e_shortcode
$breadcrumb[] = array('text' => $this->parent['download_category_name'], 'url' => ($this->parent['download_category_id']) ? e107::url('download', 'category', $this->parent) : null);
}
$breadcrumb[] = array('text' => $this->var['download_category_name'], 'url' => ($this->var['download_category_id']) ? e107::url('download', 'category', $this->var) : null);
if(isset($this->var['download_category_name']))
{
$breadcrumb[] = array('text' => $this->var['download_category_name'], 'url' => ($this->var['download_category_id']) ? e107::url('download', 'category', $this->var) : null);
}
$breadcrumb[] = array('text' => varset($this->var['download_name']), 'url' => null);
break;
}