Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactored CHttpRequest::getDelete and CHttpRequest::getPut not to us…

…e _restParams directly
  • Loading branch information...
commit e37a9fe3e2ab9acedeb366b8f653f6add70a81c5 1 parent bfe991e
@samdark samdark authored
Showing with 5 additions and 4 deletions.
  1. +1 −0  CHANGELOG
  2. +4 −4 framework/web/CHttpRequest.php
View
1  CHANGELOG
@@ -23,6 +23,7 @@ Version 1.1.14 work in progress
- Bug #2112: Fixed broken yiic shell CRUD command (mbischof)
- Bug #2146: CEmailValidator fix when fsockopen() can output uncatched error 'Connection refused (61)' (armab)
- Enh: Better CFileLogRoute performance (Qiang, samdark)
+- Enh: Refactored CHttpRequest::getDelete and CHttpRequest::getPut not to use _restParams directly (samdark)
- Enh #1847: Added COutputCache::varyByLanguage to generate separate cache for different languages (Obramko)
- Enh #1866: Client scripts in POS_HEAD are rendered after <title> tag is possible (horechek)
- Enh #1948: Tidy up and improve html5 input support in CHtml and CActiveForm (phpnode)
View
8 framework/web/CHttpRequest.php
@@ -214,8 +214,8 @@ public function getDelete($name,$defaultValue=null)
if($this->getIsDeleteRequest())
{
- $this->getRestParams();
- return isset($this->_restParams[$name]) ? $this->_restParams[$name] : $defaultValue;
+ $restParams=$this->getRestParams();
+ return isset($restParams[$name]) ? $restParams[$name] : $defaultValue;
}
else
return $defaultValue;
@@ -239,8 +239,8 @@ public function getPut($name,$defaultValue=null)
if($this->getIsPutRequest())
{
- $this->getRestParams();
- return isset($this->_restParams[$name]) ? $this->_restParams[$name] : $defaultValue;
+ $restParams=$this->getRestParams();
+ return isset($restParams[$name]) ? $restParams[$name] : $defaultValue;
}
else
return $defaultValue;

0 comments on commit e37a9fe

Please sign in to comment.
Something went wrong with that request. Please try again.