summaryrefslogtreecommitdiffstats
path: root/askbot/skins/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/utils.py')
-rw-r--r--askbot/skins/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/skins/utils.py b/askbot/skins/utils.py
index 5c9a7a7c..1f2148e6 100644
--- a/askbot/skins/utils.py
+++ b/askbot/skins/utils.py
@@ -81,7 +81,7 @@ def resolve_skin_for_media(media=None, preferred_skin = None):
return skin_name
raise MediaNotFound(media)
-def get_media_url(url):
+def get_media_url(url, ignore_missing = False):
"""returns url prefixed with the skin name
of the first skin that contains the file
directories are searched in this order:
@@ -118,7 +118,7 @@ def get_media_url(url):
'///', '/'
)
return url_copy
- else:
+ elif ignore_missing == False:
logging.critical('missing media resource %s' % url)
#2) if it does not exist in uploaded files directory - look in skins