diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-17 19:49:36 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-17 19:49:36 -0700 |
commit | 7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00 (patch) | |
tree | d88838524fa5f6cbf1d072da73eddafd4b752ffb /include/comanche.php | |
parent | f0cb3cba124e637fa46143b692dbb561d4ee3ae0 (diff) | |
parent | 76558df9667b4900b4036faca0075985596b93cd (diff) | |
download | volse-hubzilla-7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00.tar.gz volse-hubzilla-7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00.tar.bz2 volse-hubzilla-7c7a5cba8fe6fd6dc15acc14954d9ba9ed632c00.zip |
Merge branch 'master' into tres
Diffstat (limited to 'include/comanche.php')
-rw-r--r-- | include/comanche.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/comanche.php b/include/comanche.php index 3030ae5c6..fc4e4004b 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -166,12 +166,19 @@ function comanche_block($s, $class = '') { intval($channel_id), dbesc($name) ); + if($r) { $o .= (($var['wrap'] == 'none') ? '' : '<div class="' . $class . '">'); if($r[0]['title']) $o .= '<h3>' . $r[0]['title'] . '</h3>'; - $o .= prepare_text($r[0]['body'], $r[0]['mimetype']); + if($r[0]['body'] === '$content') { + $o .= prepare_text(get_app()->data['webpage'][0]['body'], get_app()->data['webpage'][0]['mimetype']); + } + else { + $o .= prepare_text($r[0]['body'], $r[0]['mimetype']); + } + $o .= (($var['wrap'] == 'none') ? '' : '</div>'); } } |