FIX: Category images were not using the CDN

This commit is contained in:
Robin Ward
2015-02-18 12:30:41 -05:00
parent 722c43b912
commit 2a4b30346c
3 changed files with 14 additions and 4 deletions

View File

@ -6,6 +6,8 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
_docTitle: document.title,
getURL: function(url) {
if (!url) { return url; }
// If it's a non relative URL, return it.
if (url.indexOf('http') === 0) return url;