I want to comment out couple of lines of code in the file /var/lib/mediawiki/includes/specialupload.php file. Here are the lines: //if( $this->detectScript ( $tmpfile, $mime, $extension ) ) { // return new WikiErrorMsg( 'uploadscripted' ); //} Now I know that it is not a good idea to modify the core mediawiki files.
What is the correct way to do this then?
Sorry for bumping up....anyone?
On Wed, Sep 29, 2010 at 6:32 PM, Tech Geek techgeek12345@gmail.com wrote:
I want to comment out couple of lines of code in the file /var/lib/mediawiki/includes/specialupload.php file. Here are the lines: //if( $this->detectScript ( $tmpfile, $mime, $extension ) ) { // return new WikiErrorMsg( 'uploadscripted' ); //} Now I know that it is not a good idea to modify the core mediawiki files.
What is the correct way to do this then?
Just do it, but be carefull... there is no beter way
mediawiki-l@lists.wikimedia.org