Index: trunk/extensions/ArticleFeedback/ArticleFeedback.php |
— | — | @@ -11,8 +11,7 @@ |
12 | 12 | */ |
13 | 13 | |
14 | 14 | /* XXX: Survey setup */ |
15 | | -$dir = dirname( __FILE__ ) . '/'; |
16 | | -require_once( $dir . '../SimpleSurvey/SimpleSurvey.php' ); |
| 15 | +require_once( dirname( dirname( __FILE__ ) ) . '/SimpleSurvey/SimpleSurvey.php' ); |
17 | 16 | |
18 | 17 | /* Configuration */ |
19 | 18 | |
— | — | @@ -83,6 +82,7 @@ |
84 | 83 | 'url' => 'http://www.mediawiki.org/wiki/Extension:ArticleFeedback' |
85 | 84 | ); |
86 | 85 | // Autoloading |
| 86 | +$dir = dirname( __FILE__ ) . '/'; |
87 | 87 | $wgAutoloadClasses['ApiQueryArticleFeedback'] = $dir . 'api/ApiQueryArticleFeedback.php'; |
88 | 88 | $wgAutoloadClasses['ApiArticleFeedback'] = $dir . 'api/ApiArticleFeedback.php'; |
89 | 89 | $wgAutoloadClasses['ArticleFeedbackHooks'] = $dir . 'ArticleFeedback.hooks.php'; |