summaryrefslogtreecommitdiff
path: root/smartyplugins
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2025-05-24 19:56:47 -0400
committerspiderr <spiderr@bitweaver.org>2025-05-24 19:56:47 -0400
commitd88f37ec61eeda8737fb90c47d1950e2dcd761d5 (patch)
treef78b098388ee73a744bdbe4a4f628b3d06dd4cde /smartyplugins
parentbd54b1fe2c6f166b5614f93e2e636489994bbcc7 (diff)
downloadthemes-d88f37ec61eeda8737fb90c47d1950e2dcd761d5.tar.gz
themes-d88f37ec61eeda8737fb90c47d1950e2dcd761d5.tar.bz2
themes-d88f37ec61eeda8737fb90c47d1950e2dcd761d5.zip
fix ifile if empty in {form}
Diffstat (limited to 'smartyplugins')
-rw-r--r--smartyplugins/block.form.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/smartyplugins/block.form.php b/smartyplugins/block.form.php
index fcdb370..2a8eb68 100644
--- a/smartyplugins/block.form.php
+++ b/smartyplugins/block.form.php
@@ -46,10 +46,11 @@ function smarty_block_form( $pParams, $pContent, &$gBitSmarty) {
case 'ipackage':
if( $key == 'ipackage' ) {
if( $val == 'root' ) {
- $url .= BIT_ROOT_URL.$pParams['ifile'];
+ $url .= BIT_ROOT_URL;
} else {
- $url .= constant( strtoupper( $val ).'_PKG_URL' ).$pParams['ifile'];
+ $url .= constant( strtoupper( $val ).'_PKG_URL' );
}
+ $url .= BitBase::getParameter( $pParams, 'ifile' );
}
break;
case 'legend':