From 32936ec833abfb3dbbb1bfcb3c1bae71b31e0691 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 5 May 2008 20:50:40 +0000 Subject: [PATCH] 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. --- includes/GlobalFunctions.php | 2 ++ includes/Parser.php | 2 +- includes/Parser_OldPP.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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. # -- 2.20.1