r76983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76982‎ | r76983 | r76984 >
Date:23:01, 18 November 2010
Author:tparscal
Status:ok
Tags:
Comment:
Moved survey include to the top, so that $wgPrefSwitchSurveys can be properly overridden.
Modified paths:
  • /trunk/extensions/ArticleFeedback/ArticleFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/ArticleFeedback.php
@@ -10,6 +10,10 @@
1111 * @version 0.1.0
1212 */
1313
 14+/* XXX: Survey setup */
 15+
 16+require_once( $dir . '../SimpleSurvey/SimpleSurvey.php' );
 17+
1418 /* Configuration */
1519
1620 // If the number of page revisions (since users last rating) is greater than this then consider the
@@ -89,7 +93,3 @@
9094 // API Registration
9195 $wgAPIListModules['articlefeedback'] = 'ApiQueryArticleFeedback';
9296 $wgAPIModules['articlefeedback'] = 'ApiArticleFeedback';
93 -
94 -/* XXX: Survey setup */
95 -
96 -require_once( $dir . '../SimpleSurvey/SimpleSurvey.php' );

Follow-up revisions

RevisionCommit summaryAuthorDate
r77811Fix r76983: move $dir too, otherwise this has really funky interactions with ...catrope16:54, 5 December 2010

Status & tagging log