MediaWiki fundraising/REL1_35
SpecialFundraiserSubscribe.php
Go to the documentation of this file.
1<?php
2
4
5 public function __construct() {
6 parent::__construct( 'FundraiserSubscribe' );
7 }
8
9 protected function getQueryTemplate() {
10 $basename = 'optin';
11 $variant = $this->mVariant;
12 if ( $variant !== '' ) {
13 // Prepend an underscore
14 $variant = "_$variant";
15 }
16 $templateName = "$basename$variant.html";
17 $fullPath = $this->getTemplateDir() . DIRECTORY_SEPARATOR . $templateName;
18 if ( is_readable( $fullPath ) ) {
19 return $templateName;
20 }
21 return 'optin.html';
22 }
23
24 protected function getSuccessTemplate() {
25 return 'optinSuccess.html';
26 }
27
28 protected function getErrorTemplate() {
29 return 'optinError.html';
30 }
31}