* (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages
* Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow
* (bug 5537) Add stub language file for Samogitian (bat-smg); inherits Lithuanian (lt)
+* Don't force edit summaries when a user is editing their own user/talk page
== Compatibility ==
* @todo document
*/
function importFormData( &$request ) {
- global $wgLang ;
+ global $wgLang, $wgUser;
$fname = 'EditPage::importFormData';
wfProfileIn( $fname );
$this->minoredit = $request->getCheck( 'wpMinoredit' );
$this->watchthis = $request->getCheck( 'wpWatchthis' );
- $this->allowBlankSummary = $request->getBool( 'wpIgnoreBlankSummary' );
+
+ # Don't force edit summaries when a user is editing their own user or talk page
+ if( ( $this->mTitle->mNamespace == NS_USER || $this->mTitle->mNamespace == NS_USER_TALK ) && $this->mTitle->getText() == $wgUser->getName() ) {
+ $this->allowBlankSummary = true;
+ } else {
+ $this->allowBlankSummary = $request->getBool( 'wpIgnoreBlankSummary' );
+ }
+
$this->autoSumm = $request->getText( 'wpAutoSummary' );
} else {
# Not a posted form? Start with nothing.