* adjust comment for only body feature.

This commit is contained in:
wangchunsheng
2012-09-02 06:54:54 +00:00
parent a8f692d644
commit 7f1a5c780d

View File

@@ -459,12 +459,14 @@ EOT;
public static function linkButton($label = '', $link = '', $misc = '')
{
global $config;
//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($link, 'onlybody=') === false and isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes')
{
$onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes";
$link .= $onlybody;
}
return " <input type='button' value='$label' class='button-c' $misc onclick='location.href=\"$link\"' /> ";
}