Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php |
— | — | @@ -415,12 +415,13 @@ |
416 | 416 | * LinksUpdate. |
417 | 417 | * |
418 | 418 | * @param WikiPage|Article $article WikiPage on 1.19 and later |
419 | | - * @param $rev |
420 | | - * @param $baseID |
| 419 | + * @param Revision $rev |
| 420 | + * @param integer $baseID |
| 421 | + * @param User $user |
421 | 422 | * |
422 | 423 | * @return true |
423 | 424 | */ |
424 | | - static public function onNewRevisionFromEditComplete( /* WikiPage */ $article, $rev, $baseID ) { |
| 425 | + static public function onNewRevisionFromEditComplete( /* WikiPage */ $article, Revision $rev, $baseID, User $user ) { |
425 | 426 | global $smwgPageSpecialProperties; |
426 | 427 | |
427 | 428 | if ( ( $article->mPreparedEdit ) && ( $article->mPreparedEdit->output instanceof ParserOutput ) ) { |
— | — | @@ -449,7 +450,7 @@ |
450 | 451 | } |
451 | 452 | |
452 | 453 | if ( in_array( '_LEDT', $smwgPageSpecialProperties ) ) { |
453 | | - $di = SMWDIWikiPage::newFromTitle( User::newFromId( $article->getRevision()->getUser() )->getUserPage() ); |
| 454 | + $di = SMWDIWikiPage::newFromTitle( $user->getUserPage() ); |
454 | 455 | |
455 | 456 | if ( !is_null( $di ) ) { |
456 | 457 | $semdata->addPropertyObjectValue( new SMWDIProperty( '_LEDT' ), $di ); |
— | — | @@ -459,7 +460,7 @@ |
460 | 461 | if ( in_array( '_NEWP', $smwgPageSpecialProperties ) ) { |
461 | 462 | $semdata->addPropertyObjectValue( |
462 | 463 | new SMWDIProperty( '_NEWP' ), |
463 | | - new SMWDIBoolean( is_null( $article->getRevision()->getParentId() ) ) |
| 464 | + new SMWDIBoolean( is_null( $rev->getParentId() ) ) |
464 | 465 | ); |
465 | 466 | } |
466 | 467 | |
Index: trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php |
— | — | @@ -331,7 +331,7 @@ |
332 | 332 | '_CONC' => array( '__con', false ), // associated concept |
333 | 333 | '_MDAT' => array( '_dat', false ), // "modification date" |
334 | 334 | '_CDAT' => array( '_dat', false ), // "creation date" |
335 | | - '_NEWP' => array( '_dat', false ), // "is a new page" |
| 335 | + '_NEWP' => array( '_boo', false ), // "is a new page" |
336 | 336 | '_LEDT' => array( '_wpg', false ), // "last editor is" |
337 | 337 | '_ERRP' => array( '_wpp', false ), // "has improper value for" |
338 | 338 | '_LIST' => array( '__pls', true ), // "has fields" |