~ubuntu-branches/ubuntu/maverick/mediawiki/maverick

« back to all changes in this revision

Viewing changes to includes/api/ApiEmailUser.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2009-06-19 01:38:50 UTC
  • mfrom: (16.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090619013850-dsn4lrxvs90ab4rx
Tags: 1:1.15.0-1
* New upstream release. 
* Upstream added support for OASIS documents.
Closes: #530328
* Refreshed quilt patches
* Bumped standards versions to 3.8.2
* Bumped compat to 7
* Pointed to GPL-2 in debian/copyright
* Added php5-sqlite to possible DB backend dependencies.
Closes: #501569
* Proofread README.Debian, upgrade is documented there.
Closes: #520121

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
        public function execute() {
41
41
                global $wgUser;
42
 
                
43
42
                // Check whether email is enabled
44
43
                if ( !EmailUserForm::userEmailEnabled() )
45
44
                        $this->dieUsageMsg( array( 'usermaildisabled' ) );
46
 
                
47
 
                $this->getMain()->requestWriteMode();
 
45
 
48
46
                $params = $this->extractRequestParams();
49
 
                
50
47
                // Check required parameters
51
48
                if ( !isset( $params['target'] ) )
52
49
                        $this->dieUsageMsg( array( 'missingparam', 'target' ) );
79
76
        
80
77
        public function mustBePosted() { return true; }
81
78
 
 
79
        public function isWriteMode() {
 
80
                return true;
 
81
        }
 
82
 
82
83
        public function getAllowedParams() {
83
84
                return array (
84
85
                        'target' => null,
112
113
        }
113
114
 
114
115
        public function getVersion() {
115
 
                return __CLASS__ . ': $Id: ApiEmailUser.php 41269 2008-09-25 21:39:36Z catrope $';
 
116
                return __CLASS__ . ': $Id: ApiEmailUser.php 48091 2009-03-06 13:49:44Z catrope $';
116
117
        }
117
118
}       
118
119
        
 
 
b'\\ No newline at end of file'