r41598 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41597‎ | r41598 | r41599 >
Date:12:13, 3 October 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
differnt callback syntax for PHP < 5.3.0 (test)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_ParserExtensions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParserExtensions.php
@@ -58,14 +58,14 @@
5959 (?:\|([^]]*))? # Display text (like "text" in [[link|text]]), optional
6060 \]\] # End of link
6161 /xu';
62 - $text = preg_replace_callback($semanticLinkPattern, 'SMWParserExtensions::parsePropertiesCallback', $text);
 62+ $text = preg_replace_callback($semanticLinkPattern, array('SMWParserExtensions','parsePropertiesCallback'), $text);
6363 } else { // simpler regexps -- no segfaults found for those, but no links in values
6464 $semanticLinkPattern = '/\[\[ # Beginning of the link
6565 (?:([^:][^]]*):[=:])+ # Property name (or a list of those)
6666 ([^\[\]]*) # content: anything but [, |, ]
6767 \]\] # End of link
6868 /xu';
69 - $text = preg_replace_callback($semanticLinkPattern, 'SMWParserExtensions::simpleParsePropertiesCallback', $text);
 69+ $text = preg_replace_callback($semanticLinkPattern, array('SMWParserExtensions','simpleParsePropertiesCallback'), $text);
7070 }
7171
7272 // add link to RDF to HTML header

Status & tagging log