summaryrefslogtreecommitdiff
path: root/smartyplugins
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2019-07-25 12:02:31 -0400
committerspiderr <spiderr@bitweaver.org>2019-07-25 12:02:31 -0400
commit6825d2a1b1e7d6aca76090f91a5015d0a5af76f2 (patch)
tree87819c223e8a302fccac6804ca57037ac908ca52 /smartyplugins
parente2ad5a8e8fee1314498bab52ed62afd69a0184fa (diff)
downloadthemes-6825d2a1b1e7d6aca76090f91a5015d0a5af76f2.tar.gz
themes-6825d2a1b1e7d6aca76090f91a5015d0a5af76f2.tar.bz2
themes-6825d2a1b1e7d6aca76090f91a5015d0a5af76f2.zip
handle empty title in jspopup
Diffstat (limited to 'smartyplugins')
-rw-r--r--smartyplugins/function.jspopup.php2
1 files changed, 1 insertions, 1 deletions
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'] );
}