dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Create ChangeTagsUpdate hook"
[lhc/web/wiklou.git]
/
includes
/
changes
/
RecentChange.php
diff --git
a/includes/changes/RecentChange.php
b/includes/changes/RecentChange.php
index
ec915f0
..
1262f2c
100644
(file)
--- a/
includes/changes/RecentChange.php
+++ b/
includes/changes/RecentChange.php
@@
-1037,9
+1037,13
@@
class RecentChange {
*
* @since 1.28
*
*
* @since 1.28
*
- * @param array $tags
+ * @param
string|
array $tags
*/
public function addTags( $tags ) {
*/
public function addTags( $tags ) {
- $this->tags = array_merge( $tags, $this->tags );
+ if ( is_string( $tags ) ) {
+ $this->tags[] = $tags;
+ } else {
+ $this->tags = array_merge( $tags, $this->tags );
+ }
}
}
}
}