summaryrefslogtreecommitdiff
path: root/platform/www/inc/ChangeLog/MediaChangeLog.php
diff options
context:
space:
mode:
Diffstat (limited to 'platform/www/inc/ChangeLog/MediaChangeLog.php')
-rw-r--r--platform/www/inc/ChangeLog/MediaChangeLog.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/platform/www/inc/ChangeLog/MediaChangeLog.php b/platform/www/inc/ChangeLog/MediaChangeLog.php
new file mode 100644
index 0000000..0d7d8d3
--- /dev/null
+++ b/platform/www/inc/ChangeLog/MediaChangeLog.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace dokuwiki\ChangeLog;
+
+/**
+ * handles changelog of a media file
+ */
+class MediaChangeLog extends ChangeLog
+{
+
+ /**
+ * Returns path to changelog
+ *
+ * @return string path to file
+ */
+ protected function getChangelogFilename()
+ {
+ return mediaMetaFN($this->id, '.changes');
+ }
+
+ /**
+ * Returns path to current page/media
+ *
+ * @return string path to file
+ */
+ protected function getFilename()
+ {
+ return mediaFN($this->id);
+ }
+}