Revert r34260, r34261. Comments add flavor to the source code!
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 5 May 2008 20:50:40 +0000 (20:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 5 May 2008 20:50:40 +0000 (20:50 +0000)
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
includes/Parser.php
includes/Parser_OldPP.php

index 148805a..fb2dfaa 100644 (file)
@@ -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
  */
index db896ae..a5162d6 100644 (file)
@@ -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.
                                #
index 1a9438b..840b1c6 100644 (file)
@@ -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.
                                #