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