From 8c0646417b757223d31bfabe7d7a63033fa62d5c Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 6 Feb 2017 15:22:41 -0800 Subject: [PATCH] {DOWNLOAD_FILENAME} shortcode added. --- e107_plugins/download/download_shortcodes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_plugins/download/download_shortcodes.php b/e107_plugins/download/download_shortcodes.php index 4eabb60a0..24bd83de5 100644 --- a/e107_plugins/download/download_shortcodes.php +++ b/e107_plugins/download/download_shortcodes.php @@ -392,7 +392,11 @@ class download_shortcodes extends e_shortcode } - + function sc_download_filename($parm=null) + { + return basename($this->var['download_url']); + + } function sc_download_list_icon($parm='') //XXX FIXME $img. {