From a8f692d6443d2c3f7bf6bace5e1eb685bc700c81 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sun, 2 Sep 2012 06:53:10 +0000 Subject: [PATCH] * adjust comments for only body feature. --- framework/helper.class.php | 2 +- lib/front/front.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index d26dd4691a..60836d6f76 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -107,7 +107,7 @@ class helper foreach($vars as $key => $value) $link .= "&$key=$value"; } - //if page has onlybody param then add this param in all link. the param hide header and footer. + /* if page has onlybody param then add this param in all link. the param hide header and footer. */ if(isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes') { $onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes"; diff --git a/lib/front/front.class.php b/lib/front/front.class.php index d70323d9e9..1c1c32c1ac 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -86,7 +86,7 @@ class html if(empty($title)) $title = $href; $newline = $newline ? "\n" : ''; - //if page has onlybody param then add this param in all link. the param hide header and footer. + /* if page has onlybody param then add this param in all link. the param hide header and footer. */ if(strpos($href, 'onlybody=yes') === false and isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes') { $onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes";