From 585d7c434e9dfdadd3d6755f0af7957f20f6b5a9 Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 24 Jan 2007 05:07:08 +0000 Subject: - plugins with own independent scripts work now (cookie_path and url root are correct) - prepare a bit some url functions so that later we can fully embed pwg in scripts located outside pwg - remove some unnecessary language strings git-svn-id: http://piwigo.org/svn/trunk@1750 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/picture_comment.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/picture_comment.inc.php') diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index faf1d9d7d..194e715c8 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -209,8 +209,7 @@ if ( $page['show_comments'] and isset( $_POST['content'] ) ) { include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); - $del_url = get_host_url().cookie_path() - .'comments.php?delete='.$comm['id']; + $del_url = get_absolute_root_url().'comments.php?delete='.$comm['id']; $content = 'Author: '.$comm['author']."\n" @@ -221,7 +220,7 @@ if ( $page['show_comments'] and isset( $_POST['content'] ) ) if ($comment_action!='validate') { $content .= - 'Validate: '.get_host_url().cookie_path() + 'Validate: '.get_absolute_root_url() .'comments.php?validate='.$comm['id']; } pwg_mail( get_webmaster_mail_address(), '', -- cgit v1.2.3