diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-03-09 11:42:34 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-03-09 12:06:59 +0100 |
commit | 45a9933524f9a31e0a104cccfd082217501017ba (patch) | |
tree | 1496e69b25ff8a32bd86bb226d42ec7c4d32a255 /inc/template.php | |
parent | ffde0ac9c67ac7dea5886a325e05300c3a88c163 (diff) | |
download | rpg-45a9933524f9a31e0a104cccfd082217501017ba.tar.gz rpg-45a9933524f9a31e0a104cccfd082217501017ba.tar.bz2 |
Move data preprocessing out of html_edit
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/inc/template.php b/inc/template.php index f15b51694..371ef2a7b 100644 --- a/inc/template.php +++ b/inc/template.php @@ -60,15 +60,15 @@ function tpl_content_core(){ case 'show': html_show(); break; - case 'preview': - html_edit($TEXT); - html_show($TEXT); - break; + case 'locked': + html_locked(); + case 'edit': case 'recover': - html_edit($TEXT); + html_edit(); break; - case 'edit': + case 'preview': html_edit(); + html_show($TEXT); break; case 'draft': html_draft(); @@ -104,10 +104,6 @@ function tpl_content_core(){ html_conflict(con($PRE,$TEXT,$SUF),$SUM); html_diff(con($PRE,$TEXT,$SUF),false); break; - case 'locked': - html_locked(); - html_edit(); - break; case 'login': html_login(); break; |