Code Duplication    Length = 5-6 lines in 2 locations

code/pagetypes/Forum.php 1 location

@@ 581-585 (lines=5) @@
578
        }
579
580
        // Set the back url
581
        if (isset($_SERVER['REQUEST_URI'])) {
582
            Session::set('BackURL', $_SERVER['REQUEST_URI']);
583
        } else {
584
            Session::set('BackURL', $this->Link());
585
        }
586
    }
587
588
    /**

code/pagetypes/ForumHolder.php 1 location

@@ 639-644 (lines=6) @@
636
        RSSFeed::linkToFeed($this->Link("rss"), _t('ForumHolder.POSTSTOALLFORUMS', "Posts to all forums"));
637
638
        // Set the back url
639
        if (isset($_SERVER['REQUEST_URI'])) {
640
            Session::set('BackURL', $_SERVER['REQUEST_URI']);
641
        } else {
642
            Session::set('BackURL', $this->Link());
643
        }
644
    }
645
646
    /**
647
     * Generate a complete list of all the members data. Return a