Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.php |
— | — | @@ -152,6 +152,16 @@ |
153 | 153 | ); |
154 | 154 | |
155 | 155 | /** |
| 156 | + * Temporary hack: for now, only one CTA is allowed, so set it here. |
| 157 | + * |
| 158 | + * Allowed values: '0' (just a confirm message), '1' (call to edit), '2' (learn |
| 159 | + * more), or '3' (survey) |
| 160 | + * |
| 161 | + * @var int |
| 162 | + */ |
| 163 | +$wgArticleFeedbackv5SelectedCTA = '3'; |
| 164 | + |
| 165 | +/** |
156 | 166 | * Turn on abuse filtering |
157 | 167 | * |
158 | 168 | * If this is set to true, comments will be run through: |
Index: trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php |
— | — | @@ -693,7 +693,8 @@ |
694 | 694 | * @return int the cta id |
695 | 695 | */ |
696 | 696 | public function getCTAId( $answers, $bucket ) { |
697 | | - return 3; # Hard-code this for now. |
| 697 | + global $wgArticleFeedbackv5SelectedCTA; |
| 698 | + return $wgArticleFeedbackv5SelectedCTA; |
698 | 699 | } |
699 | 700 | |
700 | 701 | /** |