From: Andrew Garrett Date: Wed, 1 Jul 2009 17:46:35 +0000 (+0000) Subject: Bring up reply and new thread forms with AJAX where available. Still submits with... X-Git-Tag: 1.31.0-rc.0~41151 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ca329c7acb813ae1c48b7f015396bb46b58f4404;p=lhc%2Fweb%2Fwiklou.git Bring up reply and new thread forms with AJAX where available. Still submits with a regular POST, because I've just spent a day on AJAX and that would be at least another day or two. --- diff --git a/includes/Exception.php b/includes/Exception.php index b2d668c804..7e5f0671e2 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -26,7 +26,8 @@ class MWException extends Exception { function useMessageCache() { global $wgLang; foreach ( $this->getTrace() as $frame ) { - if ( $frame['class'] == 'LocalisationCache' ) { + if ( isset( $frame['class'] ) && + $frame['class'] == 'LocalisationCache' ) { return false; } } diff --git a/includes/Skin.php b/includes/Skin.php index 6ff984b177..bd1d40e9ff 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -290,6 +290,35 @@ class Skin extends Linker { public function getTitle() { return $this->mTitle; } + + function outputUnwrappedText( $out ) { + global $wgDebugComments; + wfProfileIn( __METHOD__ ); + + $this->setMembers(); + $this->initPage( $out ); + + $out->out( $out->headElement( $this ) ); + + $out->out( "\ngetBodyOptions(); + foreach ( $ops as $name => $val ) { + $out->out( " $name='$val'" ); + } + $out->out( ">\n" ); + if ( $wgDebugComments ) { + $out->out( "\n" ); + } + + $out->out( $out->mBodytext . "\n" ); + $out->out( $this->bottomScripts() ); + + $out->out( wfReportTime() ); + + $out->out( "\n" ); + wfProfileOut( __METHOD__ ); + } function outputPage( OutputPage $out ) { global $wgDebugComments;