openrat-cms

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

commit 2c3954829169f623f567d3bca9384995cec298cc
parent da07c0a0668941f49551700c00b04acf04f5513f
Author: dankert <devnull@localhost>
Date:   Sat, 22 Dec 2007 00:24:40 +0100

Name der Request-Id-Variablen kann mit "idvar" ?bersteuert werden.

Diffstat:
actionClasses/Action.class.php | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/actionClasses/Action.class.php b/actionClasses/Action.class.php @@ -148,7 +148,10 @@ class Action */ function getRequestId() { - return intval( $this->getRequestVar( REQ_PARAM_ID ) ); + if ( $this->hasRequestVar('idvar') ) + return intval( $this->getRequestVar( $this->getRequestVar('idvar') ) ); + else + return intval( $this->getRequestVar( REQ_PARAM_ID ) ); }