* adjust comments for only body feature.

This commit is contained in:
wangchunsheng
2012-09-02 06:53:10 +00:00
parent ef6e3fd46c
commit a8f692d644
2 changed files with 2 additions and 2 deletions

View File

@@ -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";

View File

@@ -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";