Page MenuHomePhabricator

cppatch.patch

Authored By
bzimport
Nov 21 2014, 10:08 PM
Size
2 KB
Referenced Files
None
Subscribers
None

cppatch.patch

Index: includes/EditPage.php
===================================================================
--- includes/EditPage.php (revision 34333)
+++ includes/EditPage.php (working copy)
@@ -1137,14 +1137,14 @@
if ( $this->mTitle->isCascadeProtected() ) {
# Is this page under cascading protection from some source pages?
list($cascadeSources, /* $restrictions */) = $this->mTitle->getCascadeProtectionSources();
- $notice = "$1\n";
+ $pages = '';
if ( count($cascadeSources) > 0 ) {
# Explain, and list the titles responsible
foreach( $cascadeSources as $page ) {
- $notice .= '* [[:' . $page->getPrefixedText() . "]]\n";
+ $pages .= '* [[:' . $page->getPrefixedText() . "]]\n";
}
}
- $wgOut->wrapWikiMsg( $notice, array( 'cascadeprotectedwarning', count($cascadeSources) ) );
+ $wgOut->addWikiMsg( 'cascadeprotectedwarning', count($cascadeSources), $pages );
}
if( !$this->mTitle->exists() && $this->mTitle->getRestrictions( 'create' ) != array() ){
$wgOut->addWikiMsg( 'titleprotectedwarning' );
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (revision 34333)
+++ languages/messages/MessagesEn.php (working copy)
@@ -1118,7 +1118,8 @@
You may wish to cut-n-paste the text into a text file and save it for later.</strong>',
'protectedpagewarning' => '<strong>WARNING: This page has been locked so that only users with sysop privileges can edit it.</strong>',
'semiprotectedpagewarning' => "'''Note:''' This page has been locked so that only registered users can edit it.",
-'cascadeprotectedwarning' => "'''Warning:''' This page has been locked so that only users with sysop privileges can edit it, because it is included in the following cascade-protected {{PLURAL:$1|page|pages}}:",
+'cascadeprotectedwarning' => "'''Warning:''' This page has been locked so that only users with sysop privileges can edit it, because it is included in the following cascade-protected {{PLURAL:$1|page|pages}}:
+$2",
'titleprotectedwarning' => '<strong>WARNING: This page has been locked so that only some users can create it.</strong>',
'templatesused' => 'Templates used on this page:',
'templatesusedpreview' => 'Templates used in this preview:',

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4374
Default Alt Text
cppatch.patch (2 KB)

Event Timeline