summaryrefslogtreecommitdiff
path: root/modules/exif
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
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')
-rw-r--r--modules/exif/helpers/exif_theme.php6
-rw-r--r--modules/exif/views/exif_sidebar.html.php3
2 files changed, 3 insertions, 6 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;
}
diff --git a/modules/exif/views/exif_sidebar.html.php b/modules/exif/views/exif_sidebar.html.php
index 21f5a79b..fa482204 100644
--- a/modules/exif/views/exif_sidebar.html.php
+++ b/modules/exif/views/exif_sidebar.html.php
@@ -1,8 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<a href="<?= $url ?>" title="<?= t("Photo Details") ?>"
+<a href="<?= url::site("exif/show/{$item->id}") ?>" title="<?= t("Photo Details") ?>"
class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-info"></span>
<?= t("View more information") ?>
</a>
- \ No newline at end of file