aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-03-21 01:27:21 +0000
committerrvelices <rv-github@modusoptimus.com>2006-03-21 01:27:21 +0000
commite584310d3a51bcae7be00513a852ad43e22c585b (patch)
tree649befce1fa32157838995e25a720dc0f0dbed3c /comments.php
parent0c08b2561aa95b134499a157dd5a90b89460cff8 (diff)
URL rewriting: fix some old links, calendar simplification and prepare code
for urls without ? (added functions get_root_url and add_url_param) git-svn-id: http://piwigo.org/svn/trunk@1090 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r--comments.php22
1 files changed, 15 insertions, 7 deletions
diff --git a/comments.php b/comments.php
index 8fa0dec3c..8719a58cc 100644
--- a/comments.php
+++ b/comments.php
@@ -183,7 +183,7 @@ $template->assign_vars(
'F_ACTION'=>PHPWG_ROOT_PATH.'comments.php',
'F_KEYWORD'=>@$_GET['keyword'],
'F_AUTHOR'=>@$_GET['author'],
-
+
'U_HOME' => make_index_url(),
)
);
@@ -220,7 +220,7 @@ $blockname = 'since_option';
foreach ($since_options as $id => $option)
{
$selected = ($id == $page['since']) ? 'selected="selected"' : '';
-
+
$template->assign_block_vars(
$blockname,
array('SELECTED' => $selected,
@@ -403,17 +403,25 @@ SELECT id, uppercats
{
$name.= get_name_from_file($elements[$comment['image_id']]['file']);
}
-
+
// source of the thumbnail picture
$thumbnail_src = get_thumbnail_src(
$elements[$comment['image_id']]['path'],
@$elements[$comment['image_id']]['tn_ext']
);
-
+
// link to the full size picture
$url = PHPWG_ROOT_PATH.'picture.php?cat='.$comment['category_id'];
$url.= '&amp;image_id='.$comment['image_id'];
-
+
+ $url = make_picture_url(
+ array(
+ 'category' => $comment['category_id'],
+ 'image_id' => $comment['image_id'],
+ 'image_file' => $elements[$comment['image_id']]['file'],
+ )
+ );
+
$template->assign_block_vars(
'picture',
array(
@@ -421,13 +429,13 @@ SELECT id, uppercats
'I_THUMB'=>$thumbnail_src,
'U_THUMB'=>$url
));
-
+
$author = $comment['author'];
if (empty($comment['author']))
{
$author = l10n('guest');
}
-
+
$template->assign_block_vars(
'comment',
array(