Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -236,8 +236,9 @@ |
237 | 237 | } |
238 | 238 | |
239 | 239 | public static function doSetInternal( &$parser ) { |
240 | | - $mainPageFullName = $parser->getTitle()->getText(); |
241 | | - if ( ( $nsText = $parser->getTitle()->getNsText() ) != '' ) { |
| 240 | + $title = $parser->getTitle(); |
| 241 | + $mainPageFullName = $title->getText(); |
| 242 | + if ( ( $nsText = $title->getNsText() ) != '' ) { |
242 | 243 | $mainPageFullName = $nsText . ':' . $mainPageFullName; |
243 | 244 | } |
244 | 245 | |
— | — | @@ -256,7 +257,7 @@ |
257 | 258 | $curObjectNum = self::$mInternalObjectIndex; |
258 | 259 | $params = func_get_args(); |
259 | 260 | array_shift( $params ); // we already know the $parser... |
260 | | - $internalObject = new SIOInternalObject( $parser->getTitle(), $curObjectNum ); |
| 261 | + $internalObject = new SIOInternalObject( $title, $curObjectNum ); |
261 | 262 | $objToPagePropName = array_shift( $params ); |
262 | 263 | $internalObject->addPropertyAndValue( $objToPagePropName, self::$mCurPageFullName ); |
263 | 264 | foreach ( $params as $param ) { |