Fixed undefined defines warnings introduced in change 5131
authorMax Semenik <maxsem.wiki@gmail.com>
Tue, 24 Apr 2012 17:54:08 +0000 (21:54 +0400)
committerMax Semenik <maxsem.wiki@gmail.com>
Tue, 24 Apr 2012 17:54:08 +0000 (21:54 +0400)
https://gerrit.wikimedia.org/r/#change,5131

Change-Id: Ib338fd8cb5032b1468598ecedf537a75850acd62

includes/EditPage.php

index c2dfa02..92bca9e 100644 (file)
@@ -1774,7 +1774,7 @@ class EditPage {
                        }
                }
 
-               $wgOut->addHTML( Html::openElement( 'form', array( 'id' => EDITFORM_ID, 'name' => EDITFORM_ID,
+               $wgOut->addHTML( Html::openElement( 'form', array( 'id' => self::EDITFORM_ID, 'name' => self::EDITFORM_ID,
                        'method' => 'post', 'action' => $this->getActionURL( $this->getContextTitle() ),
                        'enctype' => 'multipart/form-data' ) ) );
 
@@ -2584,7 +2584,7 @@ HTML
                        $note = wfMsg( 'edit_form_incomplete' );
                } else {
                        $note = wfMsg( 'previewnote' ) .
-                               ' [[#' . EDITFORM_ID . '|' . $wgLang->getArrow() . ' ' . wfMsg( 'continue-editing' ) . ']]';
+                               ' [[#' . self::EDITFORM_ID . '|' . $wgLang->getArrow() . ' ' . wfMsg( 'continue-editing' ) . ']]';
                }
 
                $parserOptions = ParserOptions::newFromUser( $wgUser );