blob: e92ca78624566fe89a2bb5c559e952b8bcac965d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Special:Upload:
wfSpecialUpload
new UploadForm
mUpload = new UploadFrom...
execute()
$wgEnableUploads
isAllowed(upload)
isBlocked()
wfReadOnly()
processUpload()
internalProcessUpload()
wfRunHooks(UploadForm:BeforeProcessing)
mUpload->getTitle()
wfStripIllegalFilenameChars
splitExtensions()
checkFileExtension()
Title::makeTitleSafe
getUserPermissionsErrors(edit; upload; create)
mUpload->verifyUpload()
empty(mFileSize)
getTitle()
checkOverwrite()
verifyFile()
checkMacBinary()
wfRunHooks(UploadVerification)
if(!ignoreWarning) mUpload->checkWarnings()
getInitialPageText()
mUpload->performUpload()
mLocalFile->upload()
if(isGood() && $watch) addWatch()
if(isGood()) wfRunHooks(UploadComplete)
wfRunHooks(SpecialUploadComplete)
Changes:
* "Your file will be renamed to $1" check now done on the result of
Title::makeTitleSafe instead of filteredName
* getExistWarning only really does existence checks
* Other stuff forgotten to be documented
|