http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69001
Revision: 69001
Author: jeroendedauw
Date: 2010-07-04 14:42:49 +0000 (Sun, 04 Jul 2010)
Log Message:
-----------
Work on porting WP filesystem abstraction classes
Modified Paths:
--------------
trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php
trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
Modified: trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php
===================================================================
--- trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php
2010-07-04 14:41:26 UTC (rev 69000)
+++ trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php
2010-07-04 14:42:49 UTC (rev 69001)
@@ -454,7 +454,19 @@
* @see Filesystem::touch
*/
public function touch( $file, $time = 0, $atime = 0 ) {
-
+ if ( $time == 0 ) {
+ $time = time();
+ }
+
+ if ( $atime == 0 ) {
+ $atime = time();
+ }
+
+ wfSuppressWarnings();
+ $result = (bool)touch( $file, $time, $atime );
+ wfRestoreWarnings();
+
+ return $result;
}
/**
Modified: trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
===================================================================
--- trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
2010-07-04 14:41:26 UTC (rev 69000)
+++ trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php
2010-07-04 14:42:49 UTC (rev 69001)
@@ -482,7 +482,7 @@
* @see Filesystem::touch
*/
public function touch( $file, $time = 0, $atime = 0 ) {
-
+ return false;
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs