From: jenkins-bot Date: Sun, 11 Jan 2015 13:25:49 +0000 (+0000) Subject: Merge "Surround edit notices with appropriate classes" X-Git-Tag: 1.31.0-rc.0~12716 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=4d78d40d821227a9368e87306f447ffd3be5db88;hp=b82e702ff9b189fd4e761ad8e2980610e307be3b Merge "Surround edit notices with appropriate classes" --- diff --git a/includes/Title.php b/includes/Title.php index 0cac64ab17..bb4d04ef36 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4690,7 +4690,9 @@ class Title { $editnotice_ns = 'editnotice-' . $this->getNamespace(); $editnotice_ns_message = wfMessage( $editnotice_ns ); if ( $editnotice_ns_message->exists() ) { - $notices[$editnotice_ns] = $editnotice_ns_message->parseAsBlock(); + $notices[$editnotice_ns] = '
' . + $editnotice_ns_message->parseAsBlock() . '
'; } if ( MWNamespace::hasSubpages( $this->getNamespace() ) ) { $parts = explode( '/', $this->getDBkey() ); @@ -4699,7 +4701,9 @@ class Title { $editnotice_base .= '-' . array_shift( $parts ); $editnotice_base_msg = wfMessage( $editnotice_base ); if ( $editnotice_base_msg->exists() ) { - $notices[$editnotice_base] = $editnotice_base_msg->parseAsBlock(); + $notices[$editnotice_base] = '
' . + $editnotice_base_msg->parseAsBlock() . '
'; } } } else { @@ -4707,7 +4711,9 @@ class Title { $editnoticeText = $editnotice_ns . '-' . str_replace( '/', '-', $this->getDBkey() ); $editnoticeMsg = wfMessage( $editnoticeText ); if ( $editnoticeMsg->exists() ) { - $notices[$editnoticeText] = $editnoticeMsg->parseAsBlock(); + $notices[$editnoticeText] = '
' . + $editnoticeMsg->parseAsBlock() . '
'; } }