summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2012-05-25 10:30:27 -0400
committerspiderr <spider@viovio.com>2012-05-25 10:30:27 -0400
commit5859a8f3568384c15f1f2b988a26ac1db277445c (patch)
tree3b3015dd011087ff5b7d65d7bd020bdb8f3fe810
parent3a7fd75751f82ff9780f77401bebac7e3e3748a0 (diff)
downloadarticles-5859a8f3568384c15f1f2b988a26ac1db277445c.tar.gz
articles-5859a8f3568384c15f1f2b988a26ac1db277445c.tar.bz2
articles-5859a8f3568384c15f1f2b988a26ac1db277445c.zip
replace PHP_SELF with SCRIPT_NAME
-rw-r--r--display_article_inc.php2
-rw-r--r--read.php2
-rw-r--r--templates/edit_topic.tpl2
3 files changed, 3 insertions, 3 deletions
diff --git a/display_article_inc.php b/display_article_inc.php
index eee0fba..34397ba 100644
--- a/display_article_inc.php
+++ b/display_article_inc.php
@@ -23,7 +23,7 @@ if( @$gContent->mInfo['allow_comments'] == 'y' ) {
$comments_prefix_var='article:';
$comments_object_var='article';
$commentsParentId = $gContent->mContentId;
- $comments_return_url = $_SERVER['PHP_SELF']."?article_id=".$_REQUEST['article_id'];
+ $comments_return_url = $_SERVER['SCRIPT_NAME']."?article_id=".$_REQUEST['article_id'];
include_once( LIBERTY_PKG_PATH.'comments_inc.php' );
}
diff --git a/read.php b/read.php
index 55104ea..c235eac 100644
--- a/read.php
+++ b/read.php
@@ -56,7 +56,7 @@ if( @$gContent->mInfo['allow_comments'] == 'y' ) {
$comments_prefix_var='article:';
$comments_object_var='article';
$commentsParentId = $gContent->mContentId;
- $comments_return_url = $_SERVER['PHP_SELF']."?article_id=".$_REQUEST['article_id'];
+ $comments_return_url = $_SERVER['SCRIPT_NAME']."?article_id=".$_REQUEST['article_id'];
include_once( LIBERTY_PKG_PATH.'comments_inc.php' );
}
diff --git a/templates/edit_topic.tpl b/templates/edit_topic.tpl
index cbb1e1a..cdd7deb 100644
--- a/templates/edit_topic.tpl
+++ b/templates/edit_topic.tpl
@@ -43,7 +43,7 @@
{forminput}
{if $gContent->mInfo.has_topic_image eq 'y'}
<img src="{$gContent->mInfo.topic_image_url}" /> <br/>
- <a href="{$smarty.server.PHP_SELF}?topic_id={$gContent->mTopicId}&amp;fRemoveTopicImage=1">Remove Topic Image</a>
+ <a href="{$smarty.server.SCRIPT_NAME}?topic_id={$gContent->mTopicId}&amp;fRemoveTopicImage=1">Remove Topic Image</a>
{else}
{tr}No Image found{/tr}
{/if}