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