make params possible for navFrameScript
authorRené Fritz <r.fritz@colorcube.de>
Sun, 16 May 2004 14:33:08 +0000 (14:33 +0000)
committerRené Fritz <r.fritz@colorcube.de>
Sun, 16 May 2004 14:33:08 +0000 (14:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@294 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_loadmodules.php

index e8250e1..2a6862a 100644 (file)
@@ -438,9 +438,17 @@ class t3lib_loadModules {
                                if ($MCONF['defaultMod'])       {
                                        $modconf['defaultMod']=$MCONF['defaultMod'];
                                }
-                                       // Navigation Frame Script:
-                               if ($MCONF['navFrameScript'] && @file_exists($path.'/'.$MCONF['navFrameScript']))       {
-                                       $modconf['navFrameScript']= $this->getRelativePath(PATH_typo3,$fullpath.'/'.$MCONF['navFrameScript']);
+                                       // Navigation Frame Script (GET params could be added)
+                               if ($MCONF['navFrameScript']) {
+                                       $navFrameScript = explode('?', $MCONF['navFrameScript']);
+                                       $navFrameScript = $navFrameScript[0];
+                                       if (@file_exists($path.'/'.$navFrameScript))    {
+                                               $modconf['navFrameScript']= $this->getRelativePath(PATH_typo3,$fullpath.'/'.$MCONF['navFrameScript']);
+                                       }
+                               }
+                                       // additional params for Navigation Frame Script: "&anyParam=value&moreParam=1"
+                               if ($MCONF['navFrameScriptParam']) {
+                                       $modconf['navFrameScriptParam']=$MCONF['navFrameScriptParam'];
                                }
                        } else return false;
                } else $modconf='notFound';