mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Use READ_LATEST constant and fix a soft type hint"
This commit is contained in:
commit
6e48f16af6
|
@ -12,7 +12,7 @@ class SpecialNotifications extends SpecialPage {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $par
|
||||
* @param string|null $par
|
||||
* @suppress SecurityCheck-DoubleEscaped Different members of $notifArray being conflated
|
||||
*/
|
||||
public function execute( $par ) {
|
||||
|
|
|
@ -211,7 +211,7 @@ class GenerateSampleNotifications extends Maintenance {
|
|||
private function addToPageContent( Title $title, User $agent, $contentText ) {
|
||||
$page = WikiPage::factory( $title );
|
||||
$previousContent = "";
|
||||
$page->loadPageData( 'fromdbmaster' );
|
||||
$page->loadPageData( WikiPage::READ_LATEST );
|
||||
$revision = $page->getRevision();
|
||||
if ( $revision ) {
|
||||
$content = $revision->getContent( RevisionRecord::FOR_PUBLIC );
|
||||
|
|
Loading…
Reference in a new issue