Merge "Remove fully initialized debug message, dubiously useful"
[lhc/web/wiklou.git] / includes / ProtectionForm.php
index 58a04a1..bcf4dda 100644 (file)
@@ -184,9 +184,12 @@ class ProtectionForm {
 
                $out = $this->mContext->getOutput();
                if ( !wfMessage( 'protect-dropdown' )->inContentLanguage()->isDisabled() ) {
+                       $reasonsList = Xml::getArrayFromWikiTextList(
+                               wfMessage( 'protect-dropdown' )->inContentLanguage()->text()
+                       );
                        $out->addModules( 'mediawiki.reasonSuggest' );
                        $out->addJsConfigVars( [
-                               'reasons' => 'protect-dropdown'
+                               'reasons' => $reasonsList
                        ] );
                }