openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f2fe8267244a4f522308d727468e419dc8fa516d
parent 1bd7d7ea63e33d6d142e781185d8f4e6898c3ca6
Author: dankert <devnull@localhost>
Date:   Thu, 19 Mar 2009 00:30:31 +0100

Ermittlung Edit-Mode über $this->isEditMode()

Diffstat:
themes/default/include/html/window.inc.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -36,7 +36,7 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> - <?php if ($this->getRequestVar('mode')=='edit') { + <?php if ($this->isEditMode()) { ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php }