Merge "Tag redirects from moves as new redirects"
[lhc/web/wiklou.git] / includes / parser / Preprocessor_DOM.php
index 79021dd..81243f3 100644 (file)
@@ -86,9 +86,9 @@ class Preprocessor_DOM extends Preprocessor {
                $xml .= "</list>";
 
                $dom = new DOMDocument();
-               MediaWiki\suppressWarnings();
+               Wikimedia\suppressWarnings();
                $result = $dom->loadXML( $xml );
-               MediaWiki\restoreWarnings();
+               Wikimedia\restoreWarnings();
                if ( !$result ) {
                        // Try running the XML through UtfNormal to get rid of invalid characters
                        $xml = UtfNormal\Validator::cleanUp( $xml );
@@ -163,9 +163,9 @@ class Preprocessor_DOM extends Preprocessor {
                }
 
                $dom = new DOMDocument;
-               MediaWiki\suppressWarnings();
+               Wikimedia\suppressWarnings();
                $result = $dom->loadXML( $xml );
-               MediaWiki\restoreWarnings();
+               Wikimedia\restoreWarnings();
                if ( !$result ) {
                        // Try running the XML through UtfNormal to get rid of invalid characters
                        $xml = UtfNormal\Validator::cleanUp( $xml );
@@ -823,7 +823,7 @@ class PPDStack {
         */
        public $top;
        public $out;
-       public $elementClass = 'PPDStackElement';
+       public $elementClass = PPDStackElement::class;
 
        public static $false = false;
 
@@ -931,7 +931,7 @@ class PPDStackElement {
         */
        public $lineStart;
 
-       public $partClass = 'PPDPart';
+       public $partClass = PPDPart::class;
 
        public function __construct( $data = [] ) {
                $class = $this->partClass;