From 18bcfcff7f9a2ae4770cfce3dea41b7fe890e710 Mon Sep 17 00:00:00 2001 From: jaidhar Date: Thu, 18 Nov 2010 19:08:48 +0000 Subject: [PATCH] Added support for deep-event storage Signed-off-by: Jai Dhar git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3200 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/skins/xml/includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/skins/xml/includes/functions.php b/web/skins/xml/includes/functions.php index 812016af4..26565d7f2 100644 --- a/web/skins/xml/includes/functions.php +++ b/web/skins/xml/includes/functions.php @@ -11,11 +11,11 @@ /* There appears to be some discrepancy btw. 1.24.1/2 and .3 for EventPaths, to escape them here */ function getEventPathSafe($event) { - /* We don't support deep storage yet */ if (ZM_USE_DEEP_STORAGE) { - logXmlErr("XML Plugin does not support Deep storage yet, contact support@eyezm.com for this bug"); + $ret = ZM_DIR_EVENTS."/".$event['MonitorId'].'/'.strftime( "%y/%m/%d/%H/%M/%S", strtotime($event['StartTime']) ); + } else { + $ret = ZM_DIR_EVENTS."/".$event['MonitorId']."/".$event['Id']; } - $ret = ZM_DIR_EVENTS."/".$event['MonitorId']."/".$event['Id']; return $ret; } function updateClientVer()