aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editpost.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-07-20 11:08:42 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-07-20 11:08:42 +0200
commit7a069c1438eb0c6b84e9e93985722a34b4bca4e1 (patch)
treebe755ce3f75da6efb77fb5831898eaf72e201dbd /mod/editpost.php
parent11d1d309c28b7c09ae566c2a9e36bea0c5aee85a (diff)
downloadvolse-hubzilla-7a069c1438eb0c6b84e9e93985722a34b4bca4e1.tar.gz
volse-hubzilla-7a069c1438eb0c6b84e9e93985722a34b4bca4e1.tar.bz2
volse-hubzilla-7a069c1438eb0c6b84e9e93985722a34b4bca4e1.zip
Load tinyMCE on post editor only if needed.
Diffstat (limited to 'mod/editpost.php')
-rw-r--r--mod/editpost.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/editpost.php b/mod/editpost.php
index cd0bbf223..c396ee44b 100644
--- a/mod/editpost.php
+++ b/mod/editpost.php
@@ -80,7 +80,9 @@ function editpost_content(&$a) {
call_hooks('jot_tool', $jotplugins);
call_hooks('jot_networks', $jotnets);
- $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
+
+ //$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
+
$o .= replace_macros($tpl,array(
'$return_path' => $_SESSION['return_url'],
@@ -110,10 +112,10 @@ function editpost_content(&$a) {
'$lockstate' => $lockstate,
'$acl' => '', // populate_acl((($group) ? $group_acl : $a->user), $celeb),
'$bang' => (($group) ? '!' : ''),
- '$profile_uid' => $_SESSION['uid']
+ '$profile_uid' => $_SESSION['uid'],
+ '$jotplugins' => $jotplugins,
));
-
return $o;
}