Difference between revisions of "Changes to MediaWiki"
From Korean Wiki Project
(New page: In case we need to upgrade the software in the future and overwrite something, this is a collection of the exact changes made to the source code. *Search function addition **/special/Spec...) |
(Support for MultiUpload) |
||
| Line 7: | Line 7: | ||
**/includes/EditPage.php | **/includes/EditPage.php | ||
***commented out the line that included the math button | ***commented out the line that included the math button | ||
| + | |||
| + | ==MultiUpload Support== | ||
| + | <pre><nowiki> | ||
| + | *** includes/specials/SpecialUpload.php 2008-12-23 17:19:14.000000000 -0600 | ||
| + | --- /var/www/html/mediawiki-1.14.0/includes/specials/SpecialUpload.php 2009-04-14 14:58:20.000000000 -0500 | ||
| + | *************** | ||
| + | *** 272,277 **** | ||
| + | --- 272,282 ---- | ||
| + | $this->cleanupTempFile(); | ||
| + | } | ||
| + | |||
| + | + function showSuccess() { | ||
| + | + global $wgOut; | ||
| + | + $wgOut->redirect( $this->mLocalFile->getTitle()->getFullURL() ); | ||
| + | + } | ||
| + | + | ||
| + | /** | ||
| + | * Do the upload | ||
| + | * Checks are made in SpecialUpload::execute() | ||
| + | *************** | ||
| + | *** 286,292 **** | ||
| + | |||
| + | switch($value) { | ||
| + | case self::SUCCESS: | ||
| + | ! $wgOut->redirect( $this->mLocalFile->getTitle()->getFullURL() ); | ||
| + | break; | ||
| + | |||
| + | case self::BEFORE_PROCESSING: | ||
| + | --- 291,297 ---- | ||
| + | |||
| + | switch($value) { | ||
| + | case self::SUCCESS: | ||
| + | ! $this->showSuccess(); | ||
| + | break; | ||
| + | |||
| + | case self::BEFORE_PROCESSING: | ||
| + | </nowiki></pre> | ||
Latest revision as of 00:52, 6 July 2009
In case we need to upgrade the software in the future and overwrite something, this is a collection of the exact changes made to the source code.
- Search function addition
- /special/SpecialSearch.php
- added lines (copy here)
- /special/SpecialSearch.php
- Removed edit toolbar item
- /includes/EditPage.php
- commented out the line that included the math button
- /includes/EditPage.php
MultiUpload Support
*** includes/specials/SpecialUpload.php 2008-12-23 17:19:14.000000000 -0600
--- /var/www/html/mediawiki-1.14.0/includes/specials/SpecialUpload.php 2009-04-14 14:58:20.000000000 -0500
***************
*** 272,277 ****
--- 272,282 ----
$this->cleanupTempFile();
}
+ function showSuccess() {
+ global $wgOut;
+ $wgOut->redirect( $this->mLocalFile->getTitle()->getFullURL() );
+ }
+
/**
* Do the upload
* Checks are made in SpecialUpload::execute()
***************
*** 286,292 ****
switch($value) {
case self::SUCCESS:
! $wgOut->redirect( $this->mLocalFile->getTitle()->getFullURL() );
break;
case self::BEFORE_PROCESSING:
--- 291,297 ----
switch($value) {
case self::SUCCESS:
! $this->showSuccess();
break;
case self::BEFORE_PROCESSING: