浏览代码

Re-add hook just removed; compose templates are so scattered, there is nowhere a plugin can add output to the bottom of the compose page except to output its own template on this hook -- must make sure plugins NEVER output directly here without using the template API (it is possible a plugin could slip this by us). Steve did his best with converting the compose page to templates, but it's a pretty big mess, with template chunks and still a lot of output coming directly from compose.php, especially things like the form tags and misc formatting - this must be cleaned out.

pdontthink 18 年之前
父节点
当前提交
9994bc466f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/compose.php

+ 2 - 0
src/compose.php

@@ -1308,6 +1308,8 @@ function showInputForm ($session, $values=false) {
         $oTemplate->display('compose_newwin_close.tpl');
         $oTemplate->display('compose_newwin_close.tpl');
     }
     }
 
 
+    do_hook('compose_bottom', $null);
+
     $oErrorHandler->setDelayedErrors(false);
     $oErrorHandler->setDelayedErrors(false);
     $oTemplate->display('footer.tpl');
     $oTemplate->display('footer.tpl');
 }
 }