From 0389faa32794f09836907f7a073908b282bb4022 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 28 Sep 2015 13:33:13 -0400
Subject: [PATCH] PHP7: Fix "mktime(): You should be using the time() function instead" warning

---
 plugins/redundant_attachments/redundant_attachments.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/redundant_attachments/redundant_attachments.php b/plugins/redundant_attachments/redundant_attachments.php
index fc7e06e..e202a86 100644
--- a/plugins/redundant_attachments/redundant_attachments.php
+++ b/plugins/redundant_attachments/redundant_attachments.php
@@ -86,7 +86,7 @@
     private function _key($args)
     {
         $uname = $args['path'] ? $args['path'] : $args['name'];
-        return $args['group'] . md5(mktime() . $uname . $_SESSION['user_id']);
+        return $args['group'] . md5(time() . $uname . $_SESSION['user_id']);
     }
 
     /**

--
Gitblit v1.9.1