diff options
| author | spiderr <spiderr@bitweaver.org> | 2025-05-24 19:56:47 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2025-05-24 19:56:47 -0400 |
| commit | d88f37ec61eeda8737fb90c47d1950e2dcd761d5 (patch) | |
| tree | f78b098388ee73a744bdbe4a4f628b3d06dd4cde /smartyplugins | |
| parent | bd54b1fe2c6f166b5614f93e2e636489994bbcc7 (diff) | |
| download | themes-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.php | 5 |
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': |
