r54121 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54120‎ | r54121 | r54122 >
Date:20:39, 31 July 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
do not require that a title object is passed to job (job queue sometimes passes NULL if title creation failed for some reason)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/jobs/SMW_UpdateJob.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/jobs/SMW_UpdateJob.php
@@ -9,9 +9,9 @@
1010 */
1111
1212 /**
13 - * SMWUpdateJob updates the semantic data in the database for a given title
 13+ * SMWUpdateJob updates the semantic data in the database for a given title
1414 * using the MediaWiki JobQueue. Update jobs are created if, when saving an article,
15 - * it is detected that the content of other pages must be re-parsed as well (e.g.
 15+ * it is detected that the content of other pages must be re-parsed as well (e.g.
1616 * due to some type change).
1717 *
1818 * @note This job does not update the page display or parser cache, so in general
@@ -23,7 +23,7 @@
2424 */
2525 class SMWUpdateJob extends Job {
2626
27 - function __construct(Title $title) {
 27+ function __construct($title) {
2828 parent::__construct( 'SMWUpdateJob', $title);
2929 }
3030

Status & tagging log