* js::locate(), if the url is empty, set to webRoot.

This commit is contained in:
wangchunsheng
2011-09-07 06:21:01 +00:00
parent bb40b15116
commit 0fccdaa8be
+7
View File
@@ -497,6 +497,13 @@ EOT;
*/
static public function locate($url, $target = "self")
{
/* If the url if empty, goto the home page. */
if(!$url)
{
global $config;
$url = $config->webRoot;
}
$js = self::start();
if(strtolower($url) == "back")
{