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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user