Follow-ups to r56684: add a member function for extensions to add header text cleanly...
authorHappy-melon <happy-melon@users.mediawiki.org>
Sun, 20 Sep 2009 21:24:48 +0000 (21:24 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sun, 20 Sep 2009 21:24:48 +0000 (21:24 +0000)
ConfirmEdit_body.php

index 4ec7ff511e1e54d3e48704d8e4aaf04de0f71397..5bb6e7e8d1a3dc59aa53c4c20e323b8e3c04c25a 100644 (file)
@@ -151,11 +151,12 @@ class SimpleCaptcha {
                                wfDebug( "ConfirmEdit: user group allows skipping captcha on account creation\n" );
                                return true;
                        }
                                wfDebug( "ConfirmEdit: user group allows skipping captcha on account creation\n" );
                                return true;
                        }
-                       $sp->mFormHeader .= 
+                       $sp->addFormHeader( 
                                "<div class='captcha'>" .
                                $wgOut->parse( $this->getMessage( 'createaccount' ) ) .
                                $this->getForm() .
                                "<div class='captcha'>" .
                                $wgOut->parse( $this->getMessage( 'createaccount' ) ) .
                                $this->getForm() .
-                               "</div>\n";
+                               "</div>\n"
+                       );
                }
                return true;
        }
                }
                return true;
        }
@@ -169,11 +170,12 @@ class SimpleCaptcha {
        function injectUserLogin( &$sp ) {
                if ( $this->isBadLoginTriggered() ) {
                        global $wgOut;
        function injectUserLogin( &$sp ) {
                if ( $this->isBadLoginTriggered() ) {
                        global $wgOut;
-                       $sp->mFormHeader .= 
+                       $sp->addFormHeader(
                                "<div class='captcha'>" .
                                $wgOut->parse( $this->getMessage( 'badlogin' ) ) .
                                $this->getForm() .
                                "<div class='captcha'>" .
                                $wgOut->parse( $this->getMessage( 'badlogin' ) ) .
                                $this->getForm() .
-                               "</div>\n";
+                               "</div>\n"
+                       );
                }
                return true;
        }
                }
                return true;
        }