From 48f399248f2c6f179364fc4ec212fffb4190e57f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 3 Jun 2014 19:55:02 +0200 Subject: [PATCH] Added setting to omit index.php from the URL --- com.woltlab.wcf/option.xml | 11 ++++++++++- .../install/files/lib/system/request/Route.class.php | 2 +- wcfsetup/install/lang/de.xml | 3 +++ wcfsetup/install/lang/en.xml | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/option.xml b/com.woltlab.wcf/option.xml index 1f8eee1435..857869f2e4 100644 --- a/com.woltlab.wcf/option.xml +++ b/com.woltlab.wcf/option.xml @@ -30,6 +30,9 @@ general + + general.page + general @@ -378,8 +381,14 @@ general.page textarea + + diff --git a/wcfsetup/install/files/lib/system/request/Route.class.php b/wcfsetup/install/files/lib/system/request/Route.class.php index 2d9b420f53..fc765e958c 100644 --- a/wcfsetup/install/files/lib/system/request/Route.class.php +++ b/wcfsetup/install/files/lib/system/request/Route.class.php @@ -301,7 +301,7 @@ class Route { } } - if (!empty($link)) { + if (!empty($link) && ($this->isACP() || !URL_OMIT_INDEX_PHP)) { $link = 'index.php/' . $link; } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index d594c2f8fc..565b1073a3 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -641,6 +641,7 @@ + @@ -930,6 +931,8 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 7c5e5bb07e..94ce2a92f7 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -611,6 +611,7 @@ Examples for medium ID detection: + @@ -901,6 +902,8 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + + -- 2.20.1