Index: trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php |
— | — | @@ -482,7 +482,7 @@ |
483 | 483 | * @see Filesystem::touch |
484 | 484 | */ |
485 | 485 | public function touch( $file, $time = 0, $atime = 0 ) { |
486 | | - |
| 486 | + return false; |
487 | 487 | } |
488 | 488 | |
489 | 489 | /** |
Index: trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php |
— | — | @@ -454,7 +454,19 @@ |
455 | 455 | * @see Filesystem::touch |
456 | 456 | */ |
457 | 457 | public function touch( $file, $time = 0, $atime = 0 ) { |
458 | | - |
| 458 | + if ( $time == 0 ) { |
| 459 | + $time = time(); |
| 460 | + } |
| 461 | + |
| 462 | + if ( $atime == 0 ) { |
| 463 | + $atime = time(); |
| 464 | + } |
| 465 | + |
| 466 | + wfSuppressWarnings(); |
| 467 | + $result = (bool)touch( $file, $time, $atime ); |
| 468 | + wfRestoreWarnings(); |
| 469 | + |
| 470 | + return $result; |
459 | 471 | } |
460 | 472 | |
461 | 473 | /** |