openrat-cms

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

commit ef5622f817f9d14822f2b0554eb625d6247dba8e
parent d21bc99009e1905e0a5dd4a8fedd7a5817e9b76a
Author: dankert <devnull@localhost>
Date:   Sat, 26 Sep 2009 01:52:46 +0200

Bessere Darstellung des Dialogfensters.

Diffstat:
actionClasses/FileAction.class.php | 8++++----
language/de.ini.php | 7+++++--
language/en.ini.php | 3+++
3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/actionClasses/FileAction.class.php b/actionClasses/FileAction.class.php @@ -517,12 +517,12 @@ class FileAction extends ObjectAction */ function docompress() { - $format = $this->getRequestVar('format'); + $format = $this->getRequestVar('format','alphanum'); switch( $format ) { case 'gz': - if ( $this->getRequestVar('replace') ) + if ( $this->getRequestVar('replace','num')=='1' ) { $this->file->value = gzencode( $this->file->loadValue() ); $this->file->parse_filename( $this->file->filename.'.'.$this->file->extension.'.gz' ); @@ -543,7 +543,7 @@ class FileAction extends ObjectAction break; case 'bzip2': - if ( $this->getRequestVar('replace') ) + if ( $this->getRequestVar('replace')=='1' ) { $this->file->value = bzcompress( $this->file->loadValue() ); $this->file->parse_filename( $this->file->filename.'.'.$this->file->extension.'.bz2' ); @@ -563,7 +563,7 @@ class FileAction extends ObjectAction break; default: - die( 'unknown extract type: '.$format ); + die( 'unknown compress type: '.$format ); } $this->callSubAction('edit'); diff --git a/language/de.ini.php b/language/de.ini.php @@ -1028,4 +1028,7 @@ EDITOR_SHOW_LANGUAGE = "Sprache anzeigen" MENU_PROFILE_SETTINGS = "Einstellungen" MENU_PROFILE_SETTINGS_DESC = "Verändern Ihrer Benutzereinstellungen" SETTING_ALWAYS_EDIT = "Falls möglich, ein Formular sofort zum Bearbeiten öffnen" -START = "Start"- \ No newline at end of file +START = "Start" +COMPRESSION_ZIP = "ZIP (PKZIP)" +COMPRESSION_GZ = "GZip (GNU Zip)" +COMPRESSION_BZ2 = "bzip2"+ \ No newline at end of file diff --git a/language/en.ini.php b/language/en.ini.php @@ -1029,3 +1029,6 @@ MENU_PROFILE_SETTINGS = "Settings" MENU_PROFILE_SETTINGS_DESC = "Edit your user settings" SETTING_ALWAYS_EDIT = "If possible, open every form in edit mode" START = "Start" +COMPRESSION_ZIP = "ZIP (PKZIP)" +COMPRESSION_GZ = "GZip (GNU Zip)" +COMPRESSION_BZ2 = "bzip2"