aboutsummaryrefslogtreecommitdiffstats
path: root/include/comanche.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/comanche.php')
-rw-r--r--include/comanche.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/comanche.php b/include/comanche.php
index fc4e4004b..93cbd8b12 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -169,10 +169,17 @@ function comanche_block($s, $class = '') {
if($r) {
$o .= (($var['wrap'] == 'none') ? '' : '<div class="' . $class . '">');
- if($r[0]['title'])
+
+ if($r[0]['title'] && trim($r[0]['title']) != '$content') {
$o .= '<h3>' . $r[0]['title'] . '</h3>';
+ }
+
+ if($r[0]['title'] && trim($r[0]['title']) === '$content' && get_app()->data['webpage'][0]['title']) {
+ $o .= '<h3>' . get_app()->data['webpage'][0]['title'] . '</h3>';
+ }
+
- if($r[0]['body'] === '$content') {
+ if(trim($r[0]['body']) === '$content') {
$o .= prepare_text(get_app()->data['webpage'][0]['body'], get_app()->data['webpage'][0]['mimetype']);
}
else {