aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-05-11 17:02:26 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-05-11 17:02:26 -0500
commit33ddf4b1ef939dbec20c98e9e5fa2e0f8881e503 (patch)
tree31dc0de8c9e16a0683eaf67244e62ad7f0e48773 /mediagoblin/templates
parent34d304441dfab17494de012a7a7e7dc0e4e28305 (diff)
downloadmediagoblin-33ddf4b1ef939dbec20c98e9e5fa2e0f8881e503.tar.lz
mediagoblin-33ddf4b1ef939dbec20c98e9e5fa2e0f8881e503.tar.xz
mediagoblin-33ddf4b1ef939dbec20c98e9e5fa2e0f8881e503.zip
Moving the get_original_date method over to the MediaManager.
This fixes a bug so that it doesn't explode if the media_data doesn't exist. This commit sponsored by Ole-Morten Duesund. Thank you!
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 22bdf7d7..667510d5 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -155,7 +155,7 @@
</span></p>
{% if app_config['original_date_visible'] %}
- {% set original_date = media.media_data.get_original_date() %}
+ {% set original_date = media.media_manager.get_original_date() %}
{% if original_date %}
<h3>{% trans %}Created{% endtrans %}</h3>