* printLink(): add the return value.

This commit is contained in:
wangchunsheng
2009-12-18 08:57:17 +00:00
parent a67822cf5c
commit 8a1240bfed

View File

@@ -281,7 +281,9 @@ EOT;
/* <20><>ӡ<EFBFBD><D3A1><EFBFBD>ӣ<EFBFBD><D3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8>*/
public static function printLink($module, $method, $vars = '', $label, $target = '', $misc = '')
{
if(common::hasPriv($module, $method)) echo html::a(helper::createLink($module, $method, $vars), $label, $target, $misc);
if(!common::hasPriv($module, $method)) return false;
echo html::a(helper::createLink($module, $method, $vars), $label, $target, $misc);
return true;
}
/**