summaryrefslogtreecommitdiff
path: root/smartyplugins/block.form.php
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-05-25 09:24:08 -0400
committerspiderr <spider@viovio.com>2012-05-25 09:24:08 -0400
commitb6d340ff0c2f0fc208fdfc9cda5ff0077d2cb455 (patch)
tree6013685e995edd9161dc790547ca071fdc6dd47b /smartyplugins/block.form.php
parent4feff3fa29148477d6c7ca19cc70512d61d4d262 (diff)
downloadthemes-b6d340ff0c2f0fc208fdfc9cda5ff0077d2cb455.tar.gz
themes-b6d340ff0c2f0fc208fdfc9cda5ff0077d2cb455.tar.bz2
themes-b6d340ff0c2f0fc208fdfc9cda5ff0077d2cb455.zip
bit_log_error-2-bit_error_log
Diffstat (limited to 'smartyplugins/block.form.php')
-rw-r--r--smartyplugins/block.form.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/smartyplugins/block.form.php b/smartyplugins/block.form.php
index 5c1aeb0..9c517ec 100644
--- a/smartyplugins/block.form.php
+++ b/smartyplugins/block.form.php
@@ -14,7 +14,7 @@
* - ipackage (optional) - package where we should direct the form after submission
* - ifile (optional) - file that is targetted
* - ianchor (optional) - move to anchor after submitting
- * if neither are set, $PHP_SELF is used as url
+ * if neither are set, SCRIPT_NAME is used as url
* - legend if set, it will generate a fieldset using the input as legend
* @uses smarty_function_escape_special_chars()
* @todo somehow make the variable that is contained within $iselect global --> this will allow importing of outside variables not set in $_REQUEST
@@ -89,9 +89,9 @@ function smarty_block_form( $pParams, $pContent, &$gBitSmarty) {
}
if( empty( $url )) {
- $url = $_SERVER['PHP_SELF'];
+ $url = $_SERVER['SCRIPT_NAME'];
} else if( $url == 'https://' . $_SERVER['HTTP_HOST'] ) {
- $url .= $_SERVER['PHP_SELF'];
+ $url .= $_SERVER['SCRIPT_NAME'];
}
$onsub = ( !empty( $onsubmit ) ? ' onsubmit="'.$onsubmit.'"' : '' );