1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-09 17:16:20 +02: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 * Query mapping
*/ */
public function create($route, $params = array(), $options) public function create($route, $params = array(), $options=array())
{ {
if(!$params) return 'search.php'; if(!$params) return 'search.php';
return 'search.php?'.eFront::instance()->getRouter()->createPathInfo($params, $options); return 'search.php?'.eFront::instance()->getRouter()->createPathInfo($params, $options);
} }
/*
public function parse($pathInfo) public function parse($pathInfo)
{ {
// this config doesn't support parsing, it's done by the module entry script (search.php) // 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 // this means Search is not available via single entry point if this config is currently active
return false; return false;
} }*/
/** /**
* Admin callback * Admin callback

View File

@ -2853,7 +2853,10 @@ abstract class eUrlConfig
* @param array $config * @param array $config
* @return string route or false on error * @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 * Legacy callback, used called when config option legacy is not empty