]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/greenzero/theme.php
Merge pull request #556 from fermionic/20121224-smarty3-template-collision
[friendica.git] / view / theme / greenzero / theme.php
index af69b150a32d9c2ff5df225058b6a320cfd617f8..09a63c040d20d07a549c89293687e911f4f71fcf 100644 (file)
@@ -2,6 +2,7 @@
 $a->theme_info = array(
   'extends' => 'duepuntozero',
 );
+set_template_engine($a, 'smarty3');
 
 function greenzero_init(&$a) {
 $a->page['htmlhead'] .= <<< EOT
@@ -14,7 +15,8 @@ function insertFormatting(comment,BBcode,id) {
                        $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
                        $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
                        openMenu("comment-edit-submit-wrapper-" + id);
-                                                               }
+                       $("#comment-edit-text-" + id).val(tmpStr);
+               }
 
        textarea = document.getElementById("comment-edit-text-" +id);
        if (document.selection) {
@@ -85,4 +87,4 @@ $('.savedsearchterm').hover(
 
 </script>
 EOT;
-}
\ No newline at end of file
+}