Skip to content
Snippets Groups Projects
Commit f658c867 authored by Kevin Thorne's avatar Kevin Thorne
Browse files

upgrader: Fix undefined function

This checks to make sure string translation function '__()' is defined.
parent 054af755
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,13 @@ jQuery(function($) { ...@@ -27,6 +27,13 @@ jQuery(function($) {
}); });
function autoUpgrade(url, data) { function autoUpgrade(url, data) {
if (!$.isFunction('__')) {
function __(s) {
return s;
}
}
function _lp(count) { function _lp(count) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment