From: Rotem Liss Date: Mon, 18 Aug 2008 17:22:12 +0000 (+0000) Subject: Fix regression from r39373: * marks were changed to *? , which broke the colon in... X-Git-Tag: 1.31.0-rc.0~45827 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=29f9560c8cc7864beefadddb81e8134778dd507a;p=lhc%2Fweb%2Fwiklou.git Fix regression from r39373: * marks were changed to *? , which broke the colon in comments because the regexp did not recognize the post text. Reverting to the original regexp. Tested on some comments (as well as on Wikipedia:Translation/*/Lang/de mentioned in the previous commit), but if it breaks anything, please revert and fix in another way. --- diff --git a/includes/Linker.php b/includes/Linker.php index 7a7cb17265..3485889992 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1188,7 +1188,7 @@ class Linker { $this->autocommentTitle = $title; $this->autocommentLocal = $local; $comment = preg_replace_callback( - '!(.*?)/\*\s*(.*?)\s*\*/(.*?)!', + '!(.*)/\*\s*(.*?)\s*\*/(.*)!', array( $this, 'formatAutocommentsCallback' ), $comment ); unset( $this->autocommentTitle );