1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

PHP8 Fixes. Renamed 'search' class (in search.php) to 'search_front' to avoid conflicts.

This commit is contained in:
Cameron
2021-01-20 12:07:29 -08:00
parent 17dfe4149e
commit ab75f150f8
7 changed files with 39 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ function search_shortcode($parm=null)
$text = "";
if(!isset($SEARCH_SHORTCODE))
if(empty($SEARCH_SHORTCODE))
{
if(!$SEARCH_SHORTCODE = e107::getCoreTemplate('search','shortcode'))
{
@@ -22,6 +22,11 @@ function search_shortcode($parm=null)
}
}
if(empty($SEARCH_SHORTCODE))
{
trigger_error('$SEARCH_SHORTCODE template was empty', E_USER_NOTICE);
return null;
}
$ref = array();
@@ -60,10 +65,7 @@ function search_shortcode($parm=null)
$page = 'all';
}
if(empty($SEARCH_SHORTCODE))
{
return null;
}
$sc = e107::getScBatch('search');
$sc->wrapper('search/shortcode');