Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParserExtensions.php |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | (?:\|([^]]*))? # Display text (like "text" in [[link|text]]), optional |
60 | 60 | \]\] # End of link |
61 | 61 | /xu'; |
62 | | - $text = preg_replace_callback($semanticLinkPattern, 'SMWParserExtensions::parsePropertiesCallback', $text); |
| 62 | + $text = preg_replace_callback($semanticLinkPattern, array('SMWParserExtensions','parsePropertiesCallback'), $text); |
63 | 63 | } else { // simpler regexps -- no segfaults found for those, but no links in values |
64 | 64 | $semanticLinkPattern = '/\[\[ # Beginning of the link |
65 | 65 | (?:([^:][^]]*):[=:])+ # Property name (or a list of those) |
66 | 66 | ([^\[\]]*) # content: anything but [, |, ] |
67 | 67 | \]\] # End of link |
68 | 68 | /xu'; |
69 | | - $text = preg_replace_callback($semanticLinkPattern, 'SMWParserExtensions::simpleParsePropertiesCallback', $text); |
| 69 | + $text = preg_replace_callback($semanticLinkPattern, array('SMWParserExtensions','simpleParsePropertiesCallback'), $text); |
70 | 70 | } |
71 | 71 | |
72 | 72 | // add link to RDF to HTML header |