'exif-orientation-8' => '0th row: left; 0th column: bottom',
'movepage-moved' => 'The two titles are passed in plain text as $3 and $4 to allow additional goodies in the message.'
);
-
-/** Messages which contain dollar signs (which are not followed by numbers), and therefore should use a single apostrophe */
-$wgMessagseWithDollarSigns = array(
- 'linkprefix',
- 'enotif_subject',
- 'enotif_body',
- 'allmessagesnotsupportedDB',
-);
* @return The block, formatted in PHP.
*/
function writeMessagesBlock( $name, $comment, $messages, $ignoredComments ) {
- global $wgMessageComments, $wgMessagseWithDollarSigns;
- global $wgIgnoredMessages, $wgOptionalMessages;
+ global $wgMessageComments, $wgIgnoredMessages, $wgOptionalMessages;
$blockText = '';
# Skip the block if it includes no messages
# Check for the appropriate apostrophe and add the value
if ( strpos( $value, "'" ) === false ) {
$blockText .= "'$value'";
- } elseif ( strpos( $value, '"' ) === false && !in_array( $key, $wgMessagseWithDollarSigns ) ) {
+ } elseif ( strpos( $value, '"' ) === false && !preg_match('/\$[a-zA-Z]/', $value) ) {
$blockText .= "\"$value\"";
} else {
# Pick the less numerous one to escape