[TASK] Declare getThisScript() in ElementBrowser as public 37/28337/3
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 13 Mar 2014 10:19:23 +0000 (11:19 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Mon, 17 Mar 2014 19:37:10 +0000 (20:37 +0100)
To make work in hooks easier, the method should be public

Resolves: #56721
Releases: 6.2
Change-Id: Ib0a0f17d5f9384a04a125ef08a079f4c272eddae
Reviewed-on: https://review.typo3.org/28337
Reviewed-by: Alexander Stehlik
Tested-by: Alexander Stehlik
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index 3e29b4e..893127b 100644 (file)
@@ -262,9 +262,15 @@ class ElementBrowser {
        }
 
        /**
+        * Calculate path to this script.
+        *
+        * Warning: This method is public, but it MUST only be used in hooks if
+        * needed, not from other outside code.
+        *
         * @return string
+        * @internal
         */
-       protected function getThisScript() {
+       public function getThisScript() {
                return strpos($this->thisScript, '?') === FALSE ? $this->thisScript . '?' : $this->thisScript . '&';
        }