Code Duplication    Length = 5-6 lines in 2 locations

code/pagetypes/Forum.php 1 location

@@ 588-592 (lines=5) @@
585
        }
586
587
        // Set the back url
588
        if (isset($_SERVER['REQUEST_URI'])) {
589
            Session::set('BackURL', $_SERVER['REQUEST_URI']);
590
        } else {
591
            Session::set('BackURL', $this->Link());
592
        }
593
    }
594
595
    /**

code/pagetypes/ForumHolder.php 1 location

@@ 648-653 (lines=6) @@
645
        RSSFeed::linkToFeed($this->Link("rss"), _t('ForumHolder.POSTSTOALLFORUMS', "Posts to all forums"));
646
647
        // Set the back url
648
        if (isset($_SERVER['REQUEST_URI'])) {
649
            Session::set('BackURL', $_SERVER['REQUEST_URI']);
650
        } else {
651
            Session::set('BackURL', $this->Link());
652
        }
653
    }
654
655
    /**
656
     * Generate a complete list of all the members data. Return a