http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69004
Revision: 69004
Author: jeroendedauw
Date: 2010-07-04 15:06:34 +0000 (Sun, 04 Jul 2010)
Log Message:
-----------
Follow up to r69002
Modified Paths:
--------------
trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
Modified: trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
===================================================================
--- trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
2010-07-04 15:03:13 UTC (rev 69003)
+++ trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
2010-07-04 15:06:34 UTC (rev 69004)
@@ -541,7 +541,9 @@
$b['year'] = $lucifer[3];
$b['hour'] = $lucifer[4];
$b['minute'] = $lucifer[5];
- $b['time'] = @mktime($lucifer[4] +
(strcasecmp($lucifer[6], "PM") == 0 ? 12 : 0), $lucifer[5], 0, $lucifer[1],
$lucifer[2], $lucifer[3]);
+ wfSuppressWarnings();
+ $b['time'] = mktime( $lucifer[4] +
(strcasecmp($lucifer[6], 'PM' ) == 0 ? 12 : 0), $lucifer[5], 0, $lucifer[1],
$lucifer[2], $lucifer[3] );
+ wfRestoreWarnings();
$b['am/pm'] = $lucifer[6];
$b['name'] = $lucifer[8];
} elseif ( !$is_windows && $lucifer = preg_split( '/[ ]/',
$line, 9, PREG_SPLIT_NO_EMPTY ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs