Remove workaround for display links
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 1 Feb 2018 11:50:23 +0000 (12:50 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 1 Feb 2018 12:01:52 +0000 (13:01 +0100)
wcfsetup/install/files/lib/data/page/Page.class.php

index 9a9a5236c19553ded42dea968f672d028e0bb1bf..617756d7572c54feb4c3ddc6eeb48c22ff2e165f 100644 (file)
@@ -183,9 +183,6 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject {
         */
        public function getDisplayLink() {
                $link = preg_replace('~^https?://~', '', $this->getLink());
-               if ($this->controllerCustomURL) {
-                       $link = preg_replace('~(index\.php\?)[^/]+/$~', "\$1{$this->controllerCustomURL}/", $link);
-               }
                
                if (URL_OMIT_INDEX_PHP) {
                        $link = str_replace('index.php?', '', $link);