diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-27 03:43:21 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-27 03:43:21 +0000 |
commit | 921f3a2eeeca9be23cb006a31b6d6f71e186374a (patch) | |
tree | f9626ae5191418410714b662799649de5a1ea37c /modules/exif/helpers | |
parent | d7719a7e72de2ddc46c9173b0871f53e32ef40fc (diff) |
Put csrf token into Admin_View and Theme_View by default, then use it
directly wherever possible instead of access::csrf_token().
Diffstat (limited to 'modules/exif/helpers')
-rw-r--r-- | modules/exif/helpers/exif_theme.php | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |