Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item175: removed redundant condition from test request and response
git-svn-id: http://svn.foswiki.org/trunk@854 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
CrawfordCurrie
authored and
CrawfordCurrie
committed
Nov 22, 2008
1 parent
7ebfc6e
commit effe4fa
Showing
2 changed files
with
7 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
package Unit::Request; | ||
use strict; | ||
|
||
BEGIN { | ||
use Foswiki; | ||
use CGI; | ||
my ($release) = $Foswiki::RELEASE =~ /-(\d+)\.\d+\.\d+/; | ||
if ( $release >= 2 ) { | ||
require Foswiki::Request; | ||
import Foswiki::Request; | ||
@Unit::Request::ISA = 'Foswiki::Request'; | ||
} | ||
else { | ||
@Unit::Request::ISA = 'CGI'; | ||
} | ||
} | ||
|
||
use base 'Foswiki::Request'; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters