From 6825d2a1b1e7d6aca76090f91a5015d0a5af76f2 Mon Sep 17 00:00:00 2001 From: spiderr Date: Thu, 25 Jul 2019 12:02:31 -0400 Subject: handle empty title in jspopup --- smartyplugins/function.jspopup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smartyplugins') diff --git a/smartyplugins/function.jspopup.php b/smartyplugins/function.jspopup.php index 7bbfaaf..4847c3e 100644 --- a/smartyplugins/function.jspopup.php +++ b/smartyplugins/function.jspopup.php @@ -31,7 +31,7 @@ function smarty_function_jspopup( $pParams, &$gBitSmarty ) { } if( empty( $pParams['title'] ) ) { - return( 'assign: missing "title" parameter' ); + $title = basename( $pParams['href'] ); } else { $title = empty( $pParams['notra'] ) ? $pParams['title'] : tra( $pParams['title'] ); } -- cgit v1.3