Code Duplication    Length = 5-5 lines in 2 locations

src/Pages/Forum.php 1 location

@@ 650-654 (lines=5) @@
647
        }
648
649
        // Set the back url
650
        if (isset($_SERVER['REQUEST_URI'])) {
651
            Session::set('BackURL', $_SERVER['REQUEST_URI']);
652
        } else {
653
            Session::set('BackURL', $this->Link());
654
        }
655
    }
656
657
    /**

src/Pages/ForumHolder.php 1 location

@@ 693-697 (lines=5) @@
690
        RSSFeed::linkToFeed($this->Link("rss"), _t('ForumHolder.POSTSTOALLFORUMS', "Posts to all forums"));
691
692
        // Set the back url
693
        if (isset($_SERVER['REQUEST_URI'])) {
694
            Session::set('BackURL', $_SERVER['REQUEST_URI']);
695
        } else {
696
            Session::set('BackURL', $this->Link());
697
        }
698
    }
699
700
    /**