From: Marcel Werk Date: Tue, 3 Jun 2014 17:55:02 +0000 (+0200) Subject: Added setting to omit index.php from the URL X-Git-Tag: 2.1.0_Alpha_1~757 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48f399248f2c6f179364fc4ec212fffb4190e57f;p=GitHub%2FWoltLab%2FWCF.git Added setting to omit index.php from the URL --- 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]]> + +