*
* @package MediaWiki
*/
+
class EditPage {
var $mArticle;
var $mTitle;
global $wgAllowAnonymousMinor;
global $wgWhitelistEdit;
global $wgSpamRegex, $wgFilterCallback;
+ global $wgUseLatin1;
$sk = $wgUser->getSkin();
$isConflict = false;
}
}
$wgOut->setPageTitle( $s );
+ if ( !$wgUseLatin1 && !$this->checkUnicodeCompliantBrowser() ) {
+ $this->mArticle->setOldSubtitle();
+ $wgOut->addWikiText( wfMsg( 'nonunicodebrowser') );
+ }
if ( $this->oldid ) {
$this->mArticle->setOldSubtitle();
$wgOut->addHTML( wfMsg( 'editingold' ) );
return false;
}
}
+
+
+ function checkUnicodeCompliantBrowser() {
+ global $wgBrowserBlackList;
+ $currentbrowser = $_SERVER["HTTP_USER_AGENT"];
+ foreach ( $wgBrowserBlackList as $browser ) {
+ if ( preg_match($browser, $currentbrowser) ) {
+ return false;
+ }
+ }
+ return true;
+ }
+
}
?>