Use MEDIA_TYPE, not hardcoded variable of same value
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 12 Dec 2013 16:29:48 +0000 (17:29 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 12 Dec 2013 16:29:48 +0000 (17:29 +0100)
mediagoblin/media_types/image/__init__.py

index 1fab96f793d181e4196ea161821dce04343eac36..f5b49f018ee82096390cd629b43776d666a48c0a 100644 (file)
@@ -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"