summaryrefslogtreecommitdiff
path: root/modules/exif/helpers/exif_theme.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-27 03:43:21 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-27 03:43:21 +0000
commit921f3a2eeeca9be23cb006a31b6d6f71e186374a (patch)
treef9626ae5191418410714b662799649de5a1ea37c /modules/exif/helpers/exif_theme.php
parentd7719a7e72de2ddc46c9173b0871f53e32ef40fc (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/exif_theme.php')
-rw-r--r--modules/exif/helpers/exif_theme.php6
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;
}