diff --git a/includes/special/SpecialNotifications.php b/includes/special/SpecialNotifications.php index 97e94587c..0934a65e0 100644 --- a/includes/special/SpecialNotifications.php +++ b/includes/special/SpecialNotifications.php @@ -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 ) { diff --git a/maintenance/generateSampleNotifications.php b/maintenance/generateSampleNotifications.php index f47d34ed7..e95c57898 100644 --- a/maintenance/generateSampleNotifications.php +++ b/maintenance/generateSampleNotifications.php @@ -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 );