1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

PHP Notice removal

This commit is contained in:
Cameron 2017-12-12 21:44:50 -08:00
parent 29393605b9
commit 8d08a80231
2 changed files with 7 additions and 3 deletions

View File

@ -29,19 +29,20 @@ class core_search_url extends eUrlConfig
/**
* Query mapping
*/
public function create($route, $params = array(), $options)
public function create($route, $params = array(), $options=array())
{
if(!$params) return 'search.php';
return 'search.php?'.eFront::instance()->getRouter()->createPathInfo($params, $options);
}
/*
public function parse($pathInfo)
{
// this config doesn't support parsing, it's done by the module entry script (search.php)
// this means Search is not available via single entry point if this config is currently active
return false;
}
}*/
/**
* Admin callback

View File

@ -2853,7 +2853,10 @@ abstract class eUrlConfig
* @param array $config
* @return string route or false on error
*/
public function parse($pathInfo, $params = array(), eRequest $request = null, eRouter $router = null, $config = array()) { return false; }
public function parse($pathInfo, $params = array(), eRequest $request = null, eRouter $router = null, $config = array())
{
return false;
}
/**
* Legacy callback, used called when config option legacy is not empty