diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2015-06-30 23:07:10 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2015-06-30 23:07:10 +0200 |
commit | 7de86af9758e71d251fad91063035a459d83d2eb (patch) | |
tree | 1d6bd28b7cf95dd0e112c3609c0c382adbe82e75 /inc/changelog.php | |
parent | aff13b5a791d8a0b0812d4c013e85b42df37863a (diff) | |
download | rpg-7de86af9758e71d251fad91063035a459d83d2eb.tar.gz rpg-7de86af9758e71d251fad91063035a459d83d2eb.tar.bz2 |
phpdocs, reformatting
Diffstat (limited to 'inc/changelog.php')
-rw-r--r-- | inc/changelog.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/inc/changelog.php b/inc/changelog.php index d1ef7973e..f4731021c 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -849,18 +849,17 @@ abstract class ChangeLog { public function isCurrentRevision($rev) { return $rev == @filemtime($this->getFilename()); } - + /** - * Return an existing revision for a specific date which is + * Return an existing revision for a specific date which is * the current one or younger or equal then the date * - * @param string $id * @param number $date_at timestamp * @return string revision ('' for current) */ function getLastRevisionAt($date_at){ //requested date_at(timestamp) younger or equal then modified_time($this->id) => load current - if($date_at >= @filemtime($this->getFilename())) { + if($date_at >= @filemtime($this->getFilename())) { return ''; } else if ($rev = $this->getRelativeRevision($date_at+1, -1)) { //+1 to get also the requested date revision return $rev; @@ -1049,6 +1048,12 @@ class MediaChangelog extends ChangeLog { * * @author Ben Coburn <btcoburn@silicodon.net> * @author Kate Arzamastseva <pshns@ukr.net> + * + * @param string $id + * @param int $rev + * @param int $chunk_size + * @param bool $media + * @return array|bool */ function getRevisionInfo($id, $rev, $chunk_size = 8192, $media = false) { dbg_deprecated('class PageChangeLog or class MediaChangelog'); |