Skip to content

Commit

Permalink
Revert r34260, r34261. Comments add flavor to the source code!
Browse files Browse the repository at this point in the history
Remember that expletives aren't used just for fun; they indicate the severity of the problem that had to be worked around.
  • Loading branch information
Brion Vibber committed May 5, 2008
1 parent a1be405 commit 32936ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions includes/GlobalFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ function replaceInternalLinks( $s ) {
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.
#
Expand Down
2 changes: 1 addition & 1 deletion includes/Parser_OldPP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ function replaceInternalLinks( $s ) {
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.
#
Expand Down

0 comments on commit 32936ec

Please sign in to comment.