summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorKate Arzamastseva <pshns@ukr.net>2011-06-30 19:44:31 +0300
committerKate Arzamastseva <pshns@ukr.net>2011-06-30 19:44:31 +0300
commit9c1bd4bc9aa4b9ac3b9981543a14508091cd639a (patch)
tree08090fc59d03aee0c33422cee79be9b3dc58cf96 /lib/exe
parent98f03b57e3bb6185cbbb815a71d254e28df79912 (diff)
downloadrpg-9c1bd4bc9aa4b9ac3b9981543a14508091cd639a.tar.gz
rpg-9c1bd4bc9aa4b9ac3b9981543a14508091cd639a.tar.bz2
restoring old media revisions
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/mediamanager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php
index 24dd5f911..46257a9a7 100644
--- a/lib/exe/mediamanager.php
+++ b/lib/exe/mediamanager.php
@@ -84,6 +84,12 @@
$JUMPTO = media_metasave($IMG,$AUTH,$_REQUEST['meta']);
}
+ if ($_REQUEST['rev']) $REV = (int) $_REQUEST['rev'];
+
+ if($_REQUEST['mediado'] == 'restore'){
+ $JUMPTO = media_restore($_REQUEST['image'], $REV, $AUTH);
+ }
+
// handle deletion
if($DEL) {
$res = 0;