From: Aaron Schulz Date: Wed, 6 Mar 2013 23:19:23 +0000 (-0800) Subject: Made syncFileBackend.php clearer with handling --postime. X-Git-Tag: 1.31.0-rc.0~20447 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=d0401306b6230f308bd2489cb3785120ff34eadc;p=lhc%2Fweb%2Fwiklou.git Made syncFileBackend.php clearer with handling --postime. Change-Id: I9462fb2aeef0597c3a7a0d1b0b4856ffea2460f6 --- diff --git a/maintenance/syncFileBackend.php b/maintenance/syncFileBackend.php index a93ad7992d..8f6e41929d 100644 --- a/maintenance/syncFileBackend.php +++ b/maintenance/syncFileBackend.php @@ -57,10 +57,11 @@ class SyncFileBackend extends Maintenance { } if ( $this->hasOption( 'postime' ) ) { $id = (int)$src->getJournal()->getPositionAtTime( $this->getOption( 'postime' ) ); + $this->output( "Requested journal position is $id.\n" ); } else { $id = (int)$src->getJournal()->getCurrentPosition(); + $this->output( "Current journal position is $id.\n" ); } - $this->output( "Current journal position is $id.\n" ); if ( file_put_contents( $posFile, $id, LOCK_EX ) !== false ) { $this->output( "Saved journal position file.\n" ); } else {