summaryrefslogtreecommitdiff
path: root/modules/exif
diff options
context:
space:
mode:
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