Index: trunk/extensions/GPoC/GPoC.hooks.php |
— | — | @@ -12,9 +12,6 @@ |
13 | 13 | exit( 1 ); |
14 | 14 | } |
15 | 15 | |
16 | | -require_once "AssessmentsExtractor.php"; |
17 | | -require_once "models/Rating.php"; |
18 | | - |
19 | 16 | class GPoCHooks { |
20 | 17 | |
21 | 18 | private static function updateDatabase( $title, $assessments, $timestamp ) { |
Index: trunk/extensions/GPoC/models/Rating.php |
— | — | @@ -1,7 +1,5 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -require_once "Statistics.php"; |
5 | | - |
6 | 4 | /** |
7 | 5 | * Represents an article and associated rating |
8 | 6 | **/ |
Index: trunk/extensions/GPoC/GPoC.php |
— | — | @@ -21,7 +21,9 @@ |
22 | 22 | |
23 | 23 | $wgAutoloadClasses['GPoCHooks'] = $dir . 'GPoC.hooks.php'; |
24 | 24 | $wgAutoloadClasses['Statistics'] = $dir . 'models/Statistics.php'; |
| 25 | +$wgAutoloadClasses['Rating'] = $dir . 'models/Rating.php'; |
25 | 26 | $wgAutoloadClasses['TableDisplay'] = $dir . 'TableDisplay.php'; |
| 27 | +$wgAutoloadClasses['AssessmentsExtractor'] = $dir . 'AssessmentsExtractor.php'; |
26 | 28 | |
27 | 29 | $wgHooks['ArticleSaveComplete'][] = 'GPoCHooks::ArticleSaveComplete'; |
28 | 30 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'GPoCHooks::SetupSchema'; |