mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "NotifUser: Add a doc comment for getForeignCount()"
This commit is contained in:
commit
aa984f1b9b
|
@ -695,6 +695,11 @@ class MWEchoNotifUser {
|
||||||
return $this->mForeignData;
|
return $this->mForeignData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the number of foreign notifications in a given section.
|
||||||
|
* @param string $section One of EchoAttributeManager::$sections
|
||||||
|
* @return int Number of foreign notifications
|
||||||
|
*/
|
||||||
protected function getForeignCount( $section = EchoAttributeManager::ALL ) {
|
protected function getForeignCount( $section = EchoAttributeManager::ALL ) {
|
||||||
global $wgEchoSectionTransition, $wgEchoBundleTransition;
|
global $wgEchoSectionTransition, $wgEchoBundleTransition;
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
|
Loading…
Reference in a new issue