Remove workaround for omitting index.php in Page::getDisplayLink()
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 1 Feb 2018 11:57:13 +0000 (12:57 +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 617756d7572c54feb4c3ddc6eeb48c22ff2e165f..bef7da43d60dcbce551486d257c110cb8a5360d3 100644 (file)
@@ -184,10 +184,6 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject {
        public function getDisplayLink() {
                $link = preg_replace('~^https?://~', '', $this->getLink());
                
-               if (URL_OMIT_INDEX_PHP) {
-                       $link = str_replace('index.php?', '', $link);
-               }
-               
                return $link;
        }