From 439d41b194073285ab97be94253b3f4cb4395e43 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 18 Dec 2017 15:48:49 +0100 Subject: install smarty via composer and update other php libs --- .../libs/sysplugins/smarty_resource_custom.php | 95 ---------------------- 1 file changed, 95 deletions(-) delete mode 100644 library/Smarty/libs/sysplugins/smarty_resource_custom.php (limited to 'library/Smarty/libs/sysplugins/smarty_resource_custom.php') diff --git a/library/Smarty/libs/sysplugins/smarty_resource_custom.php b/library/Smarty/libs/sysplugins/smarty_resource_custom.php deleted file mode 100644 index 619f2d6f0..000000000 --- a/library/Smarty/libs/sysplugins/smarty_resource_custom.php +++ /dev/null @@ -1,95 +0,0 @@ -filepath = $source->type . ':' . $source->name; - $source->uid = sha1($source->type . ':' . $source->name); - - $mtime = $this->fetchTimestamp($source->name); - if ($mtime !== null) { - $source->timestamp = $mtime; - } else { - $this->fetch($source->name, $content, $timestamp); - $source->timestamp = isset($timestamp) ? $timestamp : false; - if (isset($content)) { - $source->content = $content; - } - } - $source->exists = !!$source->timestamp; - } - - /** - * Load template's source into current template object - * - * @param Smarty_Template_Source $source source object - * - * @return string template source - * @throws SmartyException if source cannot be loaded - */ - public function getContent(Smarty_Template_Source $source) - { - $this->fetch($source->name, $content, $timestamp); - if (isset($content)) { - return $content; - } - - throw new SmartyException("Unable to read template {$source->type} '{$source->name}'"); - } - - /** - * Determine basename for compiled filename - * - * @param Smarty_Template_Source $source source object - * - * @return string resource's basename - */ - public function getBasename(Smarty_Template_Source $source) - { - return basename($source->name); - } -} -- cgit v1.2.3