loleaflet/src/control/Control.AlertDialog.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 379453f5fbe20f4d280beb4511e07ef75bc69fdb
Author: Andras Timar <andras.ti...@collabora.com>
Date:   Fri Feb 9 15:16:08 2018 +0100

    fix variable replacement in string
    
    Change-Id: Id99f1e04c508678e0acfc040511e327910e04772
    Reviewed-on: https://gerrit.libreoffice.org/49497
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/src/control/Control.AlertDialog.js 
b/loleaflet/src/control/Control.AlertDialog.js
index f91fceae..1d9b9e48 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -26,8 +26,8 @@ L.Control.AlertDialog = L.Control.extend({
                        return;
                } else if (e.cmd && e.kind) {
                        var msg = _('The server encountered a %0 error while 
parsing the %1 command.');
-                       msg.replace('%0', e.kind);
-                       msg.replace('%1', e.cmd);
+                       msg = msg.replace('%0', e.kind);
+                       msg = msg.replace('%1', e.cmd);
                        vex.dialog.alert(msg);
                }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to