* Log views show message when no matches
* Fix raw sitenotice display on database error
* Fix autoconfirm check for old accounts
+* (bug 4368) Don't show useless empty preview on new section creation
=== Caveats ===
*/
function previewOnOpen() {
global $wgUser;
- return $wgUser->getOption( 'previewonfirst' ) ||
- ( $this->mTitle->getNamespace() == NS_CATEGORY &&
- !$this->mTitle->exists() );
+ return $this->section != 'new' &&
+ ( $wgUser->getOption( 'previewonfirst' ) ||
+ ( $this->mTitle->getNamespace() == NS_CATEGORY &&
+ !$this->mTitle->exists() ) );
}
/**