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
Document $rows on hook ChangesListInitRows as IResultWrapper
[lhc/web/wiklou.git]
/
includes
/
changes
/
ChangesList.php
diff --git
a/includes/changes/ChangesList.php
b/includes/changes/ChangesList.php
index
6f6887b
..
34adea9
100644
(file)
--- a/
includes/changes/ChangesList.php
+++ b/
includes/changes/ChangesList.php
@@
-23,7
+23,7
@@
*/
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\MediaWikiServices;
*/
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\MediaWikiServices;
-use Wikimedia\Rdbms\ResultWrapper;
+use Wikimedia\Rdbms\
I
ResultWrapper;
class ChangesList extends ContextSource {
const CSS_CLASS_PREFIX = 'mw-changeslist-';
class ChangesList extends ContextSource {
const CSS_CLASS_PREFIX = 'mw-changeslist-';
@@
-192,7
+192,7
@@
class ChangesList extends ContextSource {
* @param RecentChange|RCCacheEntry $rc
* @param string|bool $watched Optionally timestamp for adding watched class
*
* @param RecentChange|RCCacheEntry $rc
* @param string|bool $watched Optionally timestamp for adding watched class
*
- * @return
array of class
es
+ * @return
string[] List of CSS class nam
es
*/
protected function getHTMLClasses( $rc, $watched ) {
$classes = [ self::CSS_CLASS_PREFIX . 'line' ];
*/
protected function getHTMLClasses( $rc, $watched ) {
$classes = [ self::CSS_CLASS_PREFIX . 'line' ];
@@
-298,7
+298,7
@@
class ChangesList extends ContextSource {
}
/**
}
/**
- * @param ResultWrapper|array $rows
+ * @param
I
ResultWrapper|array $rows
*/
public function initChangesListRows( $rows ) {
Hooks::run( 'ChangesListInitRows', [ $this, $rows ] );
*/
public function initChangesListRows( $rows ) {
Hooks::run( 'ChangesListInitRows', [ $this, $rows ] );
@@
-640,7
+640,7
@@
class ChangesList extends ContextSource {
return $this->watchMsgCache->getWithSetCallback(
"watching-users-msg:$count",
function () use ( $count ) {
return $this->watchMsgCache->getWithSetCallback(
"watching-users-msg:$count",
function () use ( $count ) {
- return $this->msg( 'number
_of_watching_users_RCview
' )
+ return $this->msg( 'number
-of-watching-users-for-recent-changes
' )
->numParams( $count )->escaped();
}
);
->numParams( $count )->escaped();
}
);