added forgotten $script var
authorRené Fritz <r.fritz@colorcube.de>
Wed, 12 Nov 2003 16:15:15 +0000 (16:15 +0000)
committerRené Fritz <r.fritz@colorcube.de>
Wed, 12 Nov 2003 16:15:15 +0000 (16:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@56 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_befunc.php
typo3/template.php

index dcc25a8..5193dec 100755 (executable)
@@ -1918,7 +1918,7 @@ class t3lib_BEfunc        {
         */
        function getFuncMenu($id,$elementName,$currentValue,$menuItems,$script='',$addparams='')        {
                if (is_array($menuItems))       {
-                       if (!$script) {basename(PATH_thisScript);}
+                       if (!$script) {$script=basename(PATH_thisScript);}
                        $options='';
                        reset($menuItems);
                        while(list($value,$label)=each($menuItems))     {
index 7cf0116..6c67df4 100755 (executable)
@@ -1323,7 +1323,7 @@ trim($this->form);
                $content='';
 
                if (is_array($menuItems))       {
-                       if (!$script) {basename(PATH_thisScript);}
+                       if (!$script) {$script=basename(PATH_thisScript);}
                        $options='';
 
                        $count = count($menuItems);