Index: trunk/extensions/DSMW/jobs/DSMWPropertyTypeJob.php |
— | — | @@ -1,14 +1,12 @@ |
2 | 2 | <?php |
3 | 3 | /** |
| 4 | + * Job that assigns a type to some properties used in the DSMW ontology |
| 5 | + * |
4 | 6 | * @copyright 2009 INRIA-LORIA-Score Team |
5 | 7 | * |
6 | 8 | * @author jean-philippe muller |
7 | 9 | * @author Jeroen De Dauw |
8 | 10 | */ |
9 | | - |
10 | | -/** |
11 | | - * Job that assigns a type to some properties used in the DSMW ontology |
12 | | - */ |
13 | 11 | class DSMWPropertyTypeJob extends Job { |
14 | 12 | |
15 | 13 | public function __construct( $title ) { |
— | — | @@ -43,10 +41,8 @@ |
44 | 42 | $title = Title::newFromText( $titleName, SMW_NS_PROPERTY ); |
45 | 43 | |
46 | 44 | 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 |
51 | 47 | } |
52 | 48 | } |
53 | 49 | |