Pwirth has submitted this change and it was merged.

Change subject: PageTemplates: Added message parsing
......................................................................


PageTemplates: Added message parsing

The key 'bs-pagetemplates-choose-template' could not contain WikiText. Now
it can.

Change-Id: I298a23fb3092f45e555d7ddfce91d8af1893c94b
---
M PageTemplates/PageTemplates.class.php
1 file changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Pwirth: Verified; Looks good to me, approved



diff --git a/PageTemplates/PageTemplates.class.php 
b/PageTemplates/PageTemplates.class.php
index d7938df..f2d064b 100644
--- a/PageTemplates/PageTemplates.class.php
+++ b/PageTemplates/PageTemplates.class.php
@@ -133,8 +133,8 @@
        }
 
        /**
-        * Automatically modifies "noarticletext" message. Otherwise, you would 
-        * have to modify MediaWiki:noarticletext in the wiki, wich causes 
+        * Automatically modifies "noarticletext" message. Otherwise, you would
+        * have to modify MediaWiki:noarticletext in the wiki, wich causes
         * installation overhead.
         * @param string $sKey The message key. Note that it comes ucfirst and 
can be an i18n version (e.g. Noarticletext/de-formal)
         * @param string $sMessage This variable is called by reference and 
modified.
@@ -152,8 +152,8 @@
                }
 
                /*
-                * As we are in view mode but we present the user only links to 
-                * edit/create mode we do a preemptive check wether or not th 
user 
+                * As we are in view mode but we present the user only links to
+                * edit/create mode we do a preemptive check wether or not th 
user
                 * also has edit/create permission
                 */
                if ( !$oTitle->userCan( 'edit' ) ) {
@@ -202,7 +202,7 @@
                if ( !is_object( $oTitle ) ) return true;
 
                // TODO RBV (18.05.11 08:53): Coding Conventions bei Variablen. 
View? BaseView mit Template?
-               $sOut = wfMessage( 'bs-pagetemplates-choose-template' 
)->plain();
+               $sOut = wfMessage( 'bs-pagetemplates-choose-template' 
)->parse();
                $aOutNs = array();
                $sOutAll = '';
                $oTargetNsTitle = null;

-- 
To view, visit https://gerrit.wikimedia.org/r/186348
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I298a23fb3092f45e555d7ddfce91d8af1893c94b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_22
Gerrit-Owner: Robert Vogel <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to