aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-18 16:30:55 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-18 16:30:55 -0700
commitad07d48d3cca06ccc0cc8532d5476fc20b878f3f (patch)
treee074706373a694db5289f433bfd87c2d93c5d812 /include
parent0340639cb11603344eebf88b180d3f771c830cfe (diff)
parentd42d7d0532adb27c966c9ee2ddd76e33c0d0972f (diff)
downloadvolse-hubzilla-ad07d48d3cca06ccc0cc8532d5476fc20b878f3f.tar.gz
volse-hubzilla-ad07d48d3cca06ccc0cc8532d5476fc20b878f3f.tar.bz2
volse-hubzilla-ad07d48d3cca06ccc0cc8532d5476fc20b878f3f.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
Diffstat (limited to 'include')
-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 {