* The control::locate return 1 always.
This commit is contained in:
@@ -1155,11 +1155,11 @@ class baseControl
|
||||
*
|
||||
* @param string $url the target url.
|
||||
* @access public
|
||||
* @return void
|
||||
* @return int
|
||||
*/
|
||||
public function locate($url)
|
||||
public function locate($url): int
|
||||
{
|
||||
header("location: $url");
|
||||
exit;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user