From 28368cd6c055c28b6355b2fe559794a22b7d5149 Mon Sep 17 00:00:00 2001 From: Ahrr Jay Date: Wed, 17 May 2023 08:16:11 -0700 Subject: [PATCH] Change Visability to Visibility --- README.md | 6 +++--- .../software/SPDF/controller/web/GeneralWebController.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8eed8c86..a0ca985a 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ docker run -d \ -e APP_HOME_NAME="Stirling PDF" \ -e APP_HOME_DESCRIPTION="Your locally hosted one-stop-shop for all your PDF needs." \ -e APP_NAVBAR_NAME="Stirling PDF" \ - -e ALLOW_GOOGLE_VISABILITY="true" \ + -e ALLOW_GOOGLE_VISIBILITY="true" \ -e APP_ROOT_PATH="/" \ -e APP_LOCALE="en_GB" \ ``` @@ -96,7 +96,7 @@ services: # APP_HOME_DESCRIPTION: Your locally hosted one-stop-shop for all your PDF needs. # APP_NAVBAR_NAME: Stirling PDF # APP_ROOT_PATH: / -# ALLOW_GOOGLE_VISABILITY: true +# ALLOW_GOOGLE_VISIBILITY: true ``` @@ -134,7 +134,7 @@ If running Java directly, you can also pass these as properties using -D argumen Using the same method you can also change - The default language by providing APP_LOCALE with values like de-DE fr-FR or ar-AR to select your default language (Will always default to English on invalid locale) -- Enable/Disable search engine visablility with ALLOW_GOOGLE_VISABILITY with true / false values. Default disable visability. +- Enable/Disable search engine visiblility with ALLOW_GOOGLE_VISIBILITY with true / false values. Default disable visibility. - Change root URI for Stirling-PDF ie change server.com/ to server.com/pdf-app by running APP_ROOT_PATH as pdf-app ## API diff --git a/src/main/java/stirling/software/SPDF/controller/web/GeneralWebController.java b/src/main/java/stirling/software/SPDF/controller/web/GeneralWebController.java index aca36980..e3df1fb0 100644 --- a/src/main/java/stirling/software/SPDF/controller/web/GeneralWebController.java +++ b/src/main/java/stirling/software/SPDF/controller/web/GeneralWebController.java @@ -80,9 +80,9 @@ public class GeneralWebController { @ResponseBody @Hidden public String getRobotsTxt() { - String allowGoogleVisibility = System.getProperty("ALLOW_GOOGLE_VISABILITY"); + String allowGoogleVisibility = System.getProperty("ALLOW_GOOGLE_VISIBILITY"); if (allowGoogleVisibility == null) - allowGoogleVisibility = System.getenv("ALLOW_GOOGLE_VISABILITY"); + allowGoogleVisibility = System.getenv("ALLOW_GOOGLE_VISIBILITY"); if (allowGoogleVisibility == null) allowGoogleVisibility = "false"; if (Boolean.parseBoolean(allowGoogleVisibility)) {