From 0fccdaa8beeb3a61f31eb30a7da0c95bd10e7c8f Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 7 Sep 2011 06:21:01 +0000 Subject: [PATCH] * js::locate(), if the url is empty, set to webRoot. --- lib/front/front.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index d1baf1f243..ce610cb391 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -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") {