dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f149cf
)
Drop silly $_ prefix from 4.x days
author
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 5 Nov 2010 12:59:37 +0000
(12:59 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 5 Nov 2010 12:59:37 +0000
(12:59 +0000)
includes/WebRequest.php
patch
|
blob
|
history
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
ef35201
..
4cd120a
100644
(file)
--- a/
includes/WebRequest.php
+++ b/
includes/WebRequest.php
@@
-37,7
+37,12
@@
*/
class WebRequest {
protected $data, $headers = array();
*/
class WebRequest {
protected $data, $headers = array();
- private $_response;
+
+ /**
+ * Lazy-init response object
+ * @var WebResponse
+ */
+ private $response;
public function __construct() {
/// @todo Fixme: this preemptive de-quoting can interfere with other web libraries
public function __construct() {
/// @todo Fixme: this preemptive de-quoting can interfere with other web libraries
@@
-665,11
+670,11
@@
class WebRequest {
*/
public function response() {
/* Lazy initialization of response object for this request */
*/
public function response() {
/* Lazy initialization of response object for this request */
- if ( !is_object( $this->
_
response ) ) {
+ if ( !is_object( $this->response ) ) {
$class = ( $this instanceof FauxRequest ) ? 'FauxResponse' : 'WebResponse';
$class = ( $this instanceof FauxRequest ) ? 'FauxResponse' : 'WebResponse';
- $this->
_
response = new $class();
+ $this->response = new $class();
}
}
- return $this->
_
response;
+ return $this->response;
}
/**
}
/**