Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | * store this array in the current parser output, using the variable |
30 | 30 | * mSMWMagicWords. |
31 | 31 | */ |
32 | | - static public function stripMagicWords(&$text, Parser $parser) { |
| 32 | + static public function stripMagicWords(&$text, $parser) { |
33 | 33 | $words = array(); |
34 | 34 | $mw = MagicWord::get('SMW_NOFACTBOX'); |
35 | 35 | if ($mw->matchAndRemove($text)) { |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | * This function retrieves the SMW data from a given parser, and creates |
49 | 49 | * a new empty container if it is not initiated yet. |
50 | 50 | */ |
51 | | - static public function getSMWdata(Parser $parser) { |
| 51 | + static public function getSMWdata($parser) { |
52 | 52 | $output = SMWParseData::getOutput($parser); |
53 | 53 | $title = $parser->getTitle(); |
54 | 54 | if (!isset($output) || !isset($title)) return NULL; // no parsing, create error |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | /** |
64 | 64 | * Clear all stored data for a given parser. |
65 | 65 | */ |
66 | | - static public function clearStorage(Parser $parser) { |
| 66 | + static public function clearStorage($parser) { |
67 | 67 | $output = SMWParseData::getOutput($parser); |
68 | 68 | $title = $parser->getTitle(); |
69 | 69 | if (!isset($output) || !isset($title)) return; |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | * strings as they might be found in a wiki. The function returns a datavalue |
79 | 79 | * object that contains the result of the operation. |
80 | 80 | */ |
81 | | - static public function addProperty($propertyname, $value, $caption, Parser $parser, $storeannotation = true) { |
| 81 | + static public function addProperty($propertyname, $value, $caption, $parser, $storeannotation = true) { |
82 | 82 | wfProfileIn("SMWParseData::addProperty (SMW)"); |
83 | 83 | global $smwgContLang; |
84 | 84 | // See if this property is a special one, such as e.g. "has type" |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParserExtensions.php |
— | — | @@ -317,7 +317,7 @@ |
318 | 318 | * Usage: |
319 | 319 | * {{\#declare:Author=Author\#list|Publisher=editor}} |
320 | 320 | */ |
321 | | - static public function doDeclare( Parser &$parser, PPFrame $frame, $args ) { |
| 321 | + static public function doDeclare( &$parser, PPFrame $frame, $args ) { |
322 | 322 | if ($frame->isTemplate()) { |
323 | 323 | foreach ($args as $arg) |
324 | 324 | if (trim($arg) != "") { |