Index: trunk/extensions/SemanticTasks/SemanticTasks.php |
— | — | @@ -18,19 +18,24 @@ |
19 | 19 | 'path' => __FILE__, |
20 | 20 | 'name' => 'SemanticTasks', |
21 | 21 | 'author' => 'Steren Giannini', |
22 | | - 'version' => '1.1.1', |
23 | | - 'url' => 'http://www.creativecommons.org', // FIXME: URL should point to a page about this extension |
| 22 | + 'version' => '1.2', |
| 23 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Tasks', |
24 | 24 | 'description' => 'E-mail notifications for assigned or updated tasks', |
25 | 25 | 'descriptionmsg' => 'semantictasks-desc', |
26 | 26 | ); |
27 | 27 | |
28 | 28 | // Do st_SetupExtension after the mediawiki setup, AND after SemanticMediaWiki setup |
29 | 29 | // FIXME: only hook added is ArticleSaveComplete. There appears to be no need for this. |
30 | | -$wgExtensionFunctions[] = 'st_SetupExtension'; |
| 30 | +$wgExtensionFunctions[] = 'SemanticTasksSetupExtension'; |
31 | 31 | |
32 | 32 | // i18n |
33 | 33 | $wgExtensionMessagesFiles['SemanticTasks'] = dirname( __FILE__ ) . '/SemanticTasks.i18n.php'; |
34 | 34 | |
35 | | -// FIXME: Use $wgAutoloadClasses |
36 | | -// ST_Notify_Assignment.php |
37 | | -require_once( dirname( __FILE__ ) . "/ST_Notify_Assignment.php" ); |
| 35 | +$dir = dirname( __FILE__ ) . '/'; |
| 36 | +$wgAutoloadClasses['SemanticTasksMailer'] = $dir . 'SemanticTasks.classes.php'; |
| 37 | + |
| 38 | +function SemanticTasksSetupExtension() { |
| 39 | + global $wgHooks; |
| 40 | + $wgHooks['ArticleSaveComplete'][] = 'SemanticTasksMailer::mailAssigneesUpdatedTask'; |
| 41 | + return true; |
| 42 | +} |