1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Bugtracker #4909 - Consistent return options on comments

This commit is contained in:
e107steved
2010-02-14 11:25:50 +00:00
parent 778cbf9e86
commit 66e09b983c

View File

@@ -161,6 +161,11 @@ class comment
{ {
$text = $ns->tablerender($caption, $text, '', TRUE); $text = $ns->tablerender($caption, $text, '', TRUE);
} }
}
else
{ // Comment entry not allowed - point to signup link
$text = "<br /><div style='text-align:center'><b>".COMLAN_6." <a href='".e_SIGNUP."'>".COMLAN_321."</a> ".COMLAN_322."</b></div>";
}
if ($return) if ($return)
{ {
return $text; return $text;
@@ -169,11 +174,6 @@ class comment
{ {
echo $text; echo $text;
} }
}
else
{ // Comment entry not allowed - point to signup link
echo "<br /><div style='text-align:center'><b>".COMLAN_6." <a href='".e_SIGNUP."'>".COMLAN_321."</a> ".COMLAN_322."</b></div>";
}
} }
/** /**
* Enter description here... * Enter description here...