From 2eea85d502df9e9cf3386ee4f7f104d5e6eb8622 Mon Sep 17 00:00:00 2001 From: "paul.baranowski" Date: Mon, 4 Oct 2010 12:10:34 -0400 Subject: [PATCH] Fixed include path for new dir structure. --- htmlUI/ui_smartyExtensions.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htmlUI/ui_smartyExtensions.inc.php b/htmlUI/ui_smartyExtensions.inc.php index c835bc0ac..da168def7 100644 --- a/htmlUI/ui_smartyExtensions.inc.php +++ b/htmlUI/ui_smartyExtensions.inc.php @@ -127,18 +127,18 @@ function S_getSecond($param) */ function S_niceTime($param) { - require_once("../../../storageServer/var/Playlist.php"); - + require_once("../backend/Playlist.php"); + $sec = round(Playlist::playlistTimeToSeconds($param['in'])); - + $hours = $sec / 3600; $mins = ($sec % 3600) / 60; $secs = (($sec % 3600) % 60); - + if(intval($hours)) return sprintf("%02d:%02d:%02d", $hours, $mins, $secs); else return sprintf("%02d:%02d", $mins, $secs); - + } // fn S_niceTime ?> \ No newline at end of file