From a9f8ac95cdeff8050479bc9b6abec5177323081a Mon Sep 17 00:00:00 2001 From: zamentur Date: Sun, 23 Nov 2014 21:00:11 +0100 Subject: [PATCH] [fix] About installation problem due to optional argument unsupported --- manifest.json | 4 ++-- sources/index.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 16ee9b7..e6fc012 100644 --- a/manifest.json +++ b/manifest.json @@ -51,14 +51,14 @@ }, { "name": "legal", + "optional" : "true", "ask": { "en": "Indicate a web page with legal information", "fr": "Indiquez la page où figure les mentions légales", "de": "Tragen Sie bitte die Website ein, wo man den Impressum finden kann." }, - "optional" : "true", "example": "http://example.com", - "default": "" + "default": "no" }, { "name": "language", diff --git a/sources/index.php b/sources/index.php index 3fe0640..5e31ef7 100644 --- a/sources/index.php +++ b/sources/index.php @@ -101,7 +101,7 @@ echo ' '; } echo ''."\n"; - if (URL_ABOUT && !is_empty(URL_ABOUT) && URL_ABOUT!='./apropos.php') + if (URL_ABOUT!='./apropos.php' && URL_ABOUT!='' && URL_ABOUT!='false' && URL_ABOUT!='no') { echo '
'."\n"; echo ''._("About").'';