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 "output: Narrow Title type hint to LinkTarget"
[lhc/web/wiklou.git]
/
includes
/
Storage
/
DerivedPageDataUpdater.php
diff --git
a/includes/Storage/DerivedPageDataUpdater.php
b/includes/Storage/DerivedPageDataUpdater.php
index
68814ef
..
b2c003a
100644
(file)
--- a/
includes/Storage/DerivedPageDataUpdater.php
+++ b/
includes/Storage/DerivedPageDataUpdater.php
@@
-659,7
+659,7
@@
class DerivedPageDataUpdater implements IDBAccessObject, LoggerAwareInterface {
$hasLinks = (bool)count( $this->getCanonicalParserOutput()->getLinks() );
}
$hasLinks = (bool)count( $this->getCanonicalParserOutput()->getLinks() );
}
- foreach ( $this->get
Modified
SlotRoles() as $role ) {
+ foreach ( $this->get
Slots()->get
SlotRoles() as $role ) {
$roleHandler = $this->slotRoleRegistry->getRoleHandler( $role );
if ( $roleHandler->supportsArticleCount() ) {
$content = $this->getRawContent( $role );
$roleHandler = $this->slotRoleRegistry->getRoleHandler( $role );
if ( $roleHandler->supportsArticleCount() ) {
$content = $this->getRawContent( $role );
@@
-1208,7
+1208,8
@@
class DerivedPageDataUpdater implements IDBAccessObject, LoggerAwareInterface {
}
// "created" is forced here
}
// "created" is forced here
- $this->options['created'] = ( $this->pageState['oldId'] === 0 );
+ $this->options['created'] = ( $this->options['created'] ||
+ ( $this->pageState['oldId'] === 0 ) );
$this->revision = $revision;
$this->revision = $revision;
@@
-1530,7
+1531,9
@@
class DerivedPageDataUpdater implements IDBAccessObject, LoggerAwareInterface {
if ( $this->options['changed']
&& $title->getNamespace() == NS_USER_TALK
&& $shortTitle != $legacyUser->getTitleKey()
if ( $this->options['changed']
&& $title->getNamespace() == NS_USER_TALK
&& $shortTitle != $legacyUser->getTitleKey()
- && !( $this->revision->isMinor() && $legacyUser->isAllowed( 'nominornewtalk' ) )
+ && !( $this->revision->isMinor() && MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $legacyUser, 'nominornewtalk' ) )
) {
$recipient = User::newFromName( $shortTitle, false );
if ( !$recipient ) {
) {
$recipient = User::newFromName( $shortTitle, false );
if ( !$recipient ) {