Fix previous commit (removed accidentally commited wfVarDump change + whitespace...
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Thu, 10 Jul 2008 08:32:34 +0000 (08:32 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Thu, 10 Jul 2008 08:32:34 +0000 (08:32 +0000)
includes/GlobalFunctions.php
includes/specials/SpecialUpload.php

index aa90d41..def1474 100644 (file)
@@ -862,10 +862,7 @@ function wfMerge( $old, $mine, $yours, &$result ){
  */
 function wfVarDump( $var ) {
        global $wgOut;
-       ob_start();
-       var_dump( $var );
-       $s = str_replace("\n","<br />\n", ob_get_contents() . "\n");
-       ob_end_clean();
+       $s = str_replace("\n","<br />\n", var_export( $var, true ) . "\n");
        if ( headers_sent() || !@is_object( $wgOut ) ) {
                print $s;
        } else {
index 332fd28..8fe2f52 100644 (file)
@@ -426,7 +426,6 @@ class UploadForm {
                        return self::MIN_LENGHT_PARTNAME;
                }
 
-               
                $nt = Title::makeTitleSafe( NS_IMAGE, $filtered );
                if( is_null( $nt ) ) {
                        $resultDetails = array( 'filtered' => $filtered );