From f658c867b5d61d944b2bf8e762fc79defffda7db Mon Sep 17 00:00:00 2001 From: Kevin Thorne <kevin@enhancesoft.com> Date: Tue, 25 Oct 2016 07:23:53 +0000 Subject: [PATCH] upgrader: Fix undefined function This checks to make sure string translation function '__()' is defined. --- scp/js/upgrader.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scp/js/upgrader.js b/scp/js/upgrader.js index a10c02626..831337926 100644 --- a/scp/js/upgrader.js +++ b/scp/js/upgrader.js @@ -27,6 +27,13 @@ jQuery(function($) { }); function autoUpgrade(url, data) { + + if (!$.isFunction('__')) { + function __(s) { + return s; + } + } + function _lp(count) { $.ajax({ type: 'POST', -- GitLab