[TASK] Make t3lib_Rootline->isMountedPage() public
authorIngo Renner <ingo@typo3.org>
Mon, 20 Aug 2012 10:25:39 +0000 (12:25 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 20 Aug 2012 12:19:42 +0000 (14:19 +0200)
Make t3lib_Rootline->isMountedPage() public as it should be quite useful.

Change-Id: I43495ae09621f98149058adfbf2ebb7b16f18008
Fixes: #39994
Releases: 6.0
Reviewed-on: http://review.typo3.org/13963
Reviewed-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_rootline.php
tests/Unit/t3lib/fixtures/AccessibleRootline.php

index 962bc30..d82d39c 100644 (file)
@@ -374,7 +374,7 @@ class t3lib_rootline {
         *
         * @return boolean
         */
-       protected function isMountedPage() {
+       public function isMountedPage() {
                return in_array($this->pageUid, array_keys($this->parsedMountPointParameters));
        }
 
index a5b72bb..9dd6f84 100644 (file)
  */
 class Tests_unit_t3lib_AccessibleRootline extends t3lib_rootline {
 
-       public function isMountedPage() {
-               return parent::isMountedPage();
-       }
-
        public function processMountedPage($mountedPageData, $mountPointPageData) {
                return parent::processMountedPage($mountedPageData, $mountPointPageData);
        }
@@ -45,4 +41,7 @@ class Tests_unit_t3lib_AccessibleRootline extends t3lib_rootline {
        }
 
 
-}
\ No newline at end of file
+}
+
+
+?>
\ No newline at end of file