Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS

SVN: [37476] trunk/phase3/includes

 

 

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded


vasilievvv at svn

Jul 10, 2008, 1:32 AM

Post #1 of 1 (85 views)
Permalink
SVN: [37476] trunk/phase3/includes

Revision: 37476
Author: vasilievvv
Date: 2008-07-10 08:32:34 +0000 (Thu, 10 Jul 2008)

Log Message:
-----------
Fix previous commit (removed accidentally commited wfVarDump change + whitespace fix)

Modified Paths:
--------------
trunk/phase3/includes/GlobalFunctions.php
trunk/phase3/includes/specials/SpecialUpload.php

Modified: trunk/phase3/includes/GlobalFunctions.php
===================================================================
--- trunk/phase3/includes/GlobalFunctions.php 2008-07-10 08:17:17 UTC (rev 37475)
+++ trunk/phase3/includes/GlobalFunctions.php 2008-07-10 08:32:34 UTC (rev 37476)
@@ -862,10 +862,7 @@
*/
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 {

Modified: trunk/phase3/includes/specials/SpecialUpload.php
===================================================================
--- trunk/phase3/includes/specials/SpecialUpload.php 2008-07-10 08:17:17 UTC (rev 37475)
+++ trunk/phase3/includes/specials/SpecialUpload.php 2008-07-10 08:32:34 UTC (rev 37476)
@@ -426,7 +426,6 @@
return self::MIN_LENGHT_PARTNAME;
}

-
$nt = Title::makeTitleSafe( NS_IMAGE, $filtered );
if( is_null( $nt ) ) {
$resultDetails = array( 'filtered' => $filtered );



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.