From 921f3a2eeeca9be23cb006a31b6d6f71e186374a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 27 Mar 2009 03:43:21 +0000 Subject: Put csrf token into Admin_View and Theme_View by default, then use it directly wherever possible instead of access::csrf_token(). --- modules/exif/helpers/exif_theme.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/exif/helpers') diff --git a/modules/exif/helpers/exif_theme.php b/modules/exif/helpers/exif_theme.php index 41eb5c76..432bca40 100644 --- a/modules/exif/helpers/exif_theme.php +++ b/modules/exif/helpers/exif_theme.php @@ -26,11 +26,9 @@ class exif_theme_Core { if (!empty($exif_count)) { $view = new View("exif_sidebar.html"); - - $csrf = access::csrf_token(); - $view->url = url::site("exif/show/{$item->id}?csrf=$csrf"); + $view->item = $item; return $view; - } + } } return null; } -- cgit v1.2.3