Calls to Discourse.ajax no longer need getURL -- will be done automatically.
This commit is contained in:
@@ -20,7 +20,7 @@ Discourse.StaticController = Discourse.Controller.extend({
|
||||
text = text[1];
|
||||
this.set('content', text);
|
||||
} else {
|
||||
return Discourse.ajax(Discourse.getURL(path + ".json")).then(function (result) {
|
||||
return Discourse.ajax(path + ".json").then(function (result) {
|
||||
staticController.set('content', result);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user