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:
e3eef82
)
Use the .= operator to concatenate a var with another
author
Derick Alangi
<alangiderick@gmail.com>
Wed, 6 Mar 2019 22:20:56 +0000
(23:20 +0100)
committer
Derick Alangi
<alangiderick@gmail.com>
Wed, 6 Mar 2019 22:20:56 +0000
(23:20 +0100)
Rather than using $var = $var . $foo, to avoid the redundancy, use
$var .= $foo which is a valid PHP syntax and popularly used.
Change-Id: Idbbdb31a7b5561ed97f9ba0f05f6ac78c9419f82
includes/skins/QuickTemplate.php
patch
|
blob
|
history
diff --git
a/includes/skins/QuickTemplate.php
b/includes/skins/QuickTemplate.php
index
1e688eb
..
5044301
100644
(file)
--- a/
includes/skins/QuickTemplate.php
+++ b/
includes/skins/QuickTemplate.php
@@
-63,7
+63,7
@@
abstract class QuickTemplate {
*/
public function extend( $name, $value ) {
if ( $this->haveData( $name ) ) {
- $this->data[$name]
= $this->data[$name] .
$value;
+ $this->data[$name]
.=
$value;
} else {
$this->data[$name] = $value;
}