From: Brion Vibber Date: Mon, 5 May 2008 20:50:40 +0000 (+0000) Subject: Revert r34260, r34261. Comments add flavor to the source code! X-Git-Tag: 1.31.0-rc.0~47888 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=32936ec833abfb3dbbb1bfcb3c1bae71b31e0691;p=lhc%2Fweb%2Fwiklou.git Revert r34260, r34261. Comments add flavor to the source code! Remember that expletives aren't used just for fun; they indicate the severity of the problem that had to be worked around. --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 148805a455..fb2dfaa66e 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2020,6 +2020,8 @@ function wfRelativePath( $path, $from ) { * arrays to be randomly corrupted just because some of them consist * of numbers. * + * Fuck you, PHP. Fuck you in the ear! + * * @param array $array1, [$array2, [...]] * @return array */ diff --git a/includes/Parser.php b/includes/Parser.php index db896ae4e4..a5162d6aa7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1570,7 +1570,7 @@ class Parser if ( preg_match( $e1, $line, $m ) ) { # page with normal text or alt $text = $m[2]; # If we get a ] at the beginning of $m[3] that means we have a link that's something like: - # [[Image:Foo.jpg|[http://example.com desc]]] <- having three ] in a row messes up, + # [[Image:Foo.jpg|[http://example.com desc]]] <- having three ] in a row fucks up, # the real problem is with the $e1 regex # See bug 1300. # diff --git a/includes/Parser_OldPP.php b/includes/Parser_OldPP.php index 1a9438b8ec..840b1c695c 100644 --- a/includes/Parser_OldPP.php +++ b/includes/Parser_OldPP.php @@ -1583,7 +1583,7 @@ class Parser_OldPP if ( preg_match( $e1, $line, $m ) ) { # page with normal text or alt $text = $m[2]; # If we get a ] at the beginning of $m[3] that means we have a link that's something like: - # [[Image:Foo.jpg|[http://example.com desc]]] <- having three ] in a row messes up, + # [[Image:Foo.jpg|[http://example.com desc]]] <- having three ] in a row fucks up, # the real problem is with the $e1 regex # See bug 1300. #