aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editpost.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-10 14:27:41 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-10 14:27:41 -0700
commita497d8ee66edcb6e0c29e8e16c875963d497334d (patch)
treee48292679f625212dd76d4fa98b4cde9c7d5e440 /mod/editpost.php
parent43354ab385cd5c7adcc86f591159f10201420aae (diff)
parent4bf7e4a34d166a52a10939ab0bb26ac05652f59c (diff)
downloadvolse-hubzilla-a497d8ee66edcb6e0c29e8e16c875963d497334d.tar.gz
volse-hubzilla-a497d8ee66edcb6e0c29e8e16c875963d497334d.tar.bz2
volse-hubzilla-a497d8ee66edcb6e0c29e8e16c875963d497334d.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: mod/editpost.php util/messages.po view/nl/messages.po view/nl/strings.php
Diffstat (limited to 'mod/editpost.php')
-rw-r--r--mod/editpost.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/mod/editpost.php b/mod/editpost.php
index 8e4b37103..b5e9b6e94 100644
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -38,11 +38,6 @@ function editpost_content(&$a) {
$channel = $a->get_channel();
- $o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
- '$title' => t('Edit post')
- ));
-
-
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
'$baseurl' => $a->get_baseurl(),
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
@@ -54,7 +49,6 @@ function editpost_content(&$a) {
));
-
if(intval($itm[0]['item_obscured'])) {
$key = get_config('system','prvkey');
if($itm[0]['title'])
@@ -107,7 +101,7 @@ function editpost_content(&$a) {
$cipher = 'aes256';
- $o .= replace_macros($tpl,array(
+ $editor = replace_macros($tpl,array(
'$return_path' => $_SESSION['return_url'],
'$action' => 'item',
'$share' => t('Edit'),
@@ -161,6 +155,11 @@ function editpost_content(&$a) {
'$expiryModalCANCEL' => t('Cancel'),
));
+ $o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
+ '$title' => t('Edit post'),
+ '$editor' => $editor
+ ));
+
return $o;
}