Bring up reply and new thread forms with AJAX where available. Still submits with...
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 1 Jul 2009 17:46:35 +0000 (17:46 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 1 Jul 2009 17:46:35 +0000 (17:46 +0000)
includes/Exception.php
includes/Skin.php

index b2d668c..7e5f067 100644 (file)
@@ -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;
                        }
                }
index 6ff984b..bd1d40e 100644 (file)
@@ -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( "\n<body" );
+               $ops = $this->getBodyOptions();
+               foreach ( $ops as $name => $val ) {
+                       $out->out( " $name='$val'" );
+               }
+               $out->out( ">\n" );
+               if ( $wgDebugComments ) {
+                       $out->out( "<!-- Wiki debugging output:\n" .
+                         $out->mDebugtext . "-->\n" );
+               }
+
+               $out->out( $out->mBodytext . "\n" );
+               $out->out( $this->bottomScripts() );
+
+               $out->out( wfReportTime() );
+
+               $out->out( "\n</body></html>" );
+               wfProfileOut( __METHOD__ );
+       }
 
        function outputPage( OutputPage $out ) {
                global $wgDebugComments;