From: Nick Jenkins Date: Thu, 19 Oct 2006 02:11:36 +0000 (+0000) Subject: Quick update to r17088 - Fuzz testing was giving me a PHP Notice: "Undefined variable... X-Git-Tag: 1.31.0-rc.0~55436 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d44f1238db4ad4d41d7e12b9b4cd50723bb53d7c;p=lhc%2Fweb%2Fwiklou.git Quick update to r17088 - Fuzz testing was giving me a PHP Notice: "Undefined variable: wgUseDatabaseMessages in /var/www/hosts/mediawiki/wiki/languages/messages/MessagesPl.php on line 1292
". This happens because the desired output is the literal string "$wgUseDatabaseMessages", not the value of the $wgUseDatabaseMessages variable. However variables are not expanded in single quotes, but they are in double quotes; so when the line was changed from single to double quotes, it started wanting to print out the variable - therefore modifying to use single quotes, and adding escaping for the literal singles quotes. --- diff --git a/languages/messages/MessagesPl.php b/languages/messages/MessagesPl.php index 5430e8ff87..368841baa5 100644 --- a/languages/messages/MessagesPl.php +++ b/languages/messages/MessagesPl.php @@ -1289,7 +1289,7 @@ Można również użyć łącza, np. [[{{ns:Special}}:Export/{{Mediawiki:mainpag 'allmessagescurrent' => 'Tekst obecny', 'allmessagestext' => 'Oto lista wszystkich komunikatów dostępnych w przestrzeni nazw MediaWiki:', 'allmessagesnotsupportedUI' => 'Wybrany przez Ciebie język interfejsu $1 nie jest wspierany przez stronę Special:Allmessages.', -'allmessagesnotsupportedDB' => "Strona '''Special:Allmessages''' nie może być użyta, ponieważ '''$wgUseDatabaseMessages''' jest wyłączone.", +'allmessagesnotsupportedDB' => 'Strona \'\'\'Special:Allmessages\'\'\' nie może być użyta, ponieważ \'\'\'$wgUseDatabaseMessages\'\'\' jest wyłączone.', 'allmessagesfilter' => 'Filtr nazw komunikatów:', 'allmessagesmodified' => 'Pokaż tylko zmodyfikowane',