route : if the module is not set, work as it is ""

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2695 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-04-14 18:35:22 +00:00
parent 2509155cc2
commit d35b61e290

View File

@@ -191,9 +191,9 @@ class route
If module is set, the site is modular and a directory is named with module
name
@param string $destURL Do a redirection of the HTTP page
@param string $module The module name
@param string|null $module The module name
@param boolean|null Permanent redirect (false by default) */
function redirect ($destURL, $module, $permanent = false)
function redirect ($destURL, $module="", $permanent = false)
{
if (php_sapi_name () === "cli")
exit;