From: Sebastian Spaeth Date: Thu, 12 Dec 2013 16:29:48 +0000 (+0100) Subject: Use MEDIA_TYPE, not hardcoded variable of same value X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52a0387fc6ad023516c765019725ca58daaae347;p=mediagoblin.git Use MEDIA_TYPE, not hardcoded variable of same value --- diff --git a/mediagoblin/media_types/image/__init__.py b/mediagoblin/media_types/image/__init__.py index 1fab96f7..f5b49f01 100644 --- a/mediagoblin/media_types/image/__init__.py +++ b/mediagoblin/media_types/image/__init__.py @@ -28,7 +28,7 @@ ACCEPTED_EXTENSIONS = ["jpg", "jpeg", "png", "gif", "tiff"] MEDIA_TYPE = 'mediagoblin.media_types.image' def setup_plugin(): - config = pluginapi.get_config('mediagoblin.media_types.image') + config = pluginapi.get_config(MEDIA_TYPE) class ImageMediaManager(MediaManagerBase): human_readable = "Image"