summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-05-25 10:35:36 -0400
committerspiderr <spider@viovio.com>2012-05-25 10:35:36 -0400
commite17b056b2d03e3a8f0eb7944fa7fa79f4f56229e (patch)
tree67626a0f87b26b29ee6c72d973557c9b5e6d56ce
parentb6d340ff0c2f0fc208fdfc9cda5ff0077d2cb455 (diff)
downloadthemes-e17b056b2d03e3a8f0eb7944fa7fa79f4f56229e.tar.gz
themes-e17b056b2d03e3a8f0eb7944fa7fa79f4f56229e.tar.bz2
themes-e17b056b2d03e3a8f0eb7944fa7fa79f4f56229e.zip
replace PHP_SELF with SCRIPT_NAME
-rw-r--r--smartyplugins/function.pageurl.php2
-rw-r--r--smartyplugins/function.pagination.php2
-rw-r--r--templates/admin_layout.tpl2
3 files changed, 3 insertions, 3 deletions
diff --git a/smartyplugins/function.pageurl.php b/smartyplugins/function.pageurl.php
index 768862d..22b6a7e 100644
--- a/smartyplugins/function.pageurl.php
+++ b/smartyplugins/function.pageurl.php
@@ -13,7 +13,7 @@
* Name: pageurl<br>
* Input:
* - <listHash>=<attribute=>value> (optional) - pass in any attributes and they will be added to the url string<br>
- * Output: url of the form: $PHP_SELF?attribute1=value1&attribute2=value2
+ * Output: url of the form: $_SERVER[SCRIPT_NAME]?attribute1=value1&attribute2=value2
/* Build up URL variable string */
function smarty_function_pageurl( $params, &$gBitSmarty ) {
diff --git a/smartyplugins/function.pagination.php b/smartyplugins/function.pagination.php
index 11f9a88..7527aaa 100644
--- a/smartyplugins/function.pagination.php
+++ b/smartyplugins/function.pagination.php
@@ -13,7 +13,7 @@
* Name: pagination<br>
* Input:<br>
* - <attribute>=<value> (optional) - pass in any attributes and they will be added to the pagination string<br>
- * Output: url of the form: $PHP_SELF?attribute1=value1&attribute2=value2
+ * Output: url of the form: $_SERVER[SCRIPT_NAME]?attribute1=value1&attribute2=value2
*/
function smarty_function_pagination( $params, &$gBitSmarty ) {
$pgnUrl = $gBitSmarty->get_template_vars('returnURL');
diff --git a/templates/admin_layout.tpl b/templates/admin_layout.tpl
index 8b9cdb8..484b2b4 100644
--- a/templates/admin_layout.tpl
+++ b/templates/admin_layout.tpl
@@ -232,7 +232,7 @@
{/jstab}
{jstab title="Center"}
- {form action=$smarty.server.PHP_SELF legend="Assign content to the center area"}
+ {form action=$smarty.server.SCRIPT_NAME legend="Assign content to the center area"}
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_package" value="{$module_package}" />
<input type="hidden" name="fAssign[layout_area]" value="c" />