X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=blobdiff_plain;f=includes%2FEditPage.php;h=814da6a4dc9c5ab5edf7cfc7557c6ead276026b3;hb=bab4f5d64e03cbe61e5d92d0bac5abe12ff7cab5;hp=a45c889c6b112720b3c68fa20dc5725c6f2f2d26;hpb=8b3a8dcc467aae31cd1bfa39466bfd80b4ba8bbb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index a45c889c6b..814da6a4dc 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2483,11 +2483,13 @@ class EditPage { } # Give a notice if the user is editing a deleted/moved page... if ( !$this->mTitle->exists() ) { + $dbr = wfGetDB( DB_REPLICA ); + LogEventsList::showLogExtract( $wgOut, [ 'delete', 'move' ], $this->mTitle, '', [ 'lim' => 10, - 'conds' => [ "log_action != 'revision'" ], + 'conds' => [ 'log_action != ' . $dbr->addQuotes( 'revision' ) ], 'showIfEmpty' => false, 'msgKey' => [ 'recreate-moveddeleted-warn' ] ]