r77820 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77819‎ | r77820 | r77821 >
Date:18:57, 5 December 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to suggestion by Nikerabbit at r77767
Modified paths:
  • /trunk/extensions/DSMW/jobs/DSMWPropertyTypeJob.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DSMW/jobs/DSMWPropertyTypeJob.php
@@ -1,14 +1,12 @@
22 <?php
33 /**
 4+ * Job that assigns a type to some properties used in the DSMW ontology
 5+ *
46 * @copyright 2009 INRIA-LORIA-Score Team
57 *
68 * @author jean-philippe muller
79 * @author Jeroen De Dauw
810 */
9 -
10 -/**
11 - * Job that assigns a type to some properties used in the DSMW ontology
12 - */
1311 class DSMWPropertyTypeJob extends Job {
1412
1513 public function __construct( $title ) {
@@ -43,10 +41,8 @@
4442 $title = Title::newFromText( $titleName, SMW_NS_PROPERTY );
4543
4644 if ( !$title->exists() ) {
47 - $article = new Article( $title );
48 - $editpage = new EditPage( $article );
49 - $editpage->textbox1 = $propertyProperties;
50 - $editpage->attemptSave();
 45+ $article = new Article( $title, 0 );
 46+ $article->doEdit( $article->getRawText() . $propertyProperties, '' ); // TODO: add summary
5147 }
5248 }
5349

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77767Some cleanupjeroendedauw05:11, 5 December 2010

Status & tagging log