There is a hardcoded max page length in EditPage.php (for 1.5rc4 its on line
550). If the page size is larger than this value MediaWiki:Longpagewarning is
displayed at the top of the Edit Page. This maximum length should be a system
message so it can be customized by various wikis. Wikis that require longer
page lengths (like wikisource) could then raise that value.
The code currently looks like:
$kblength = (int)(strlen( $this->textbox1 ) / 1024);
if( $kblength > 29 ) { $wgOut->addWikiText( wfMsg( 'longpagewarning', $wgLang->formatNum( $kblength
) ) );
}
and should be something like:
$kblength = (int)(strlen( $this->textbox1 ) / 1024);
if( $kblength > wfMsg('longpagemaxvalue') ) { $wgOut->addWikiText( wfMsg( 'longpagewarning', $wgLang->formatNum( $kblength
) ) );
}
Probably have to convert wfMsg('longpagemaxvalue') to an int.
Version: unspecified
Severity: enhancement
URL: http://en.wikisource.org/w/index.php?title=The_Dunwich_Horror&action=edit