commit 12b7df69540f7ba9b3b649f23521000b52f1d6c6
parent 5be37f938e1796920dc074ab33903d2a8f35d9fd
Author: dankert <devnull@localhost>
Date: Sat, 20 Mar 2010 00:06:54 +0100
Konstanten für Request-Filter benutzen.
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/actionClasses/FileAction.class.php b/actionClasses/FileAction.class.php
@@ -567,7 +567,7 @@ class FileAction extends ObjectAction
switch( $format )
{
case 'gz':
- if ( $this->getRequestVar('replace','num')=='1' )
+ if ( $this->getRequestVar('replace',OR_FILTER_NUMBER)=='1' )
{
$this->file->value = gzencode( $this->file->loadValue(),1 );
$this->file->parse_filename( $this->file->filename.'.'.$this->file->extension.'.gz',FORCE_GZIP );
diff --git a/actionClasses/IndexAction.class.php b/actionClasses/IndexAction.class.php
@@ -329,10 +329,10 @@ class IndexAction extends Action
$this->setTemplateVar('force_username',$username);
}
- $this->setTemplateVar('objectid' ,$this->getRequestVar('objectid' ,'num') );
- $this->setTemplateVar('projectid' ,$this->getRequestVar('projectid' ,'num') );
- $this->setTemplateVar('modelid' ,$this->getRequestVar('modelid' ,'num') );
- $this->setTemplateVar('languageid',$this->getRequestVar('languageid','num') );
+ $this->setTemplateVar('objectid' ,$this->getRequestVar('objectid' ,OR_FILTER_NUMBER) );
+ $this->setTemplateVar('projectid' ,$this->getRequestVar('projectid' ,OR_FILTER_NUMBER) );
+ $this->setTemplateVar('modelid' ,$this->getRequestVar('modelid' ,OR_FILTER_NUMBER) );
+ $this->setTemplateVar('languageid',$this->getRequestVar('languageid',OR_FILTER_NUMBER) );
$this->setTemplateVar('register' ,$conf['login' ]['register' ]);
$this->setTemplateVar('send_password',$conf['login' ]['send_password']);