mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Check page userclass before displaying {CPAGEBUTTON}
This commit is contained in:
@@ -244,6 +244,12 @@ class cpage_shortcodes extends e_shortcode
|
||||
|
||||
function sc_cpagebutton($parm)
|
||||
{
|
||||
|
||||
if(!check_class($this->var['page_class']))
|
||||
{
|
||||
return "<!-- Button Removed: Page check_class() returned false. -->";
|
||||
}
|
||||
|
||||
$url = $this->sc_cpageurl();
|
||||
|
||||
if($parm == 'href' || !$url)
|
||||
|
Reference in New Issue
Block a user