summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-03-09 11:42:34 +0100
committerAdrian Lang <lang@cosmocode.de>2010-03-09 12:06:59 +0100
commit45a9933524f9a31e0a104cccfd082217501017ba (patch)
tree1496e69b25ff8a32bd86bb226d42ec7c4d32a255 /inc/template.php
parentffde0ac9c67ac7dea5886a325e05300c3a88c163 (diff)
downloadrpg-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.php16
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;