diff options
| author | spiderr <spiderr@bitweaver.org> | 2019-07-25 12:02:31 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2019-07-25 12:02:31 -0400 |
| commit | 6825d2a1b1e7d6aca76090f91a5015d0a5af76f2 (patch) | |
| tree | 87819c223e8a302fccac6804ca57037ac908ca52 /smartyplugins | |
| parent | e2ad5a8e8fee1314498bab52ed62afd69a0184fa (diff) | |
| download | themes-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.php | 2 |
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'] ); } |
