From 61eb1f0d187f639b623b478381973ef93d14f90d Mon Sep 17 00:00:00 2001 From: Leberwurscht Date: Wed, 18 Apr 2012 00:32:04 +0200 Subject: [PATCH] jappixmini: prepare for safe updates of the addon --- jappixmini/jappixmini.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index d09427e7..6ce7d741 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -80,7 +80,11 @@ if (!$info_text) set_config("jappixmini", "infotext", ); $bosh_proxy = get_config("jappixmini", "bosh_proxy"); -if ($bosh_proxy==="") set_config("jappixmini", "bosh_proxy", 1); +if ($bosh_proxy==="") set_config("jappixmini", "bosh_proxy", "1"); + +// set addon version so that safe updates are possible later +$addon_version = get_config("jappixmini", "version"); +if ($addon_version==="") set_config("jappixmini", "version", "1"); } -- 2.39.5