Changed TSconfig options for function onClickEvent () -> related to templavoila ...
authorRobert Lemke <robert.lemke@typo3.org>
Tue, 16 Dec 2003 20:35:06 +0000 (20:35 +0000)
committerRobert Lemke <robert.lemke@typo3.org>
Tue, 16 Dec 2003 20:35:06 +0000 (20:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@72 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_positionmap.php

index dac3ecc..c9a3c07 100755 (executable)
@@ -282,6 +282,9 @@ class t3lib_positionMap {
 
        /**
         * Creates the onclick event for the insert-icons.
+        *
+        * TSconfig mod.web_list.newPageWiz.overrideWithExtension may contain an extension which provides a module
+        * to be used instead of the normal create new page wizard.
         * 
         * @param       integer         The pid.
         * @param       integer         New page id.
@@ -290,9 +293,9 @@ class t3lib_positionMap {
        function onClickEvent($pid,$newPagePID) {
                $TSconfigProp = $this->getModConfig($newPagePID);
                
-               if ($TSconfigProp['useTemplaVoila'])    {
-                       if (t3lib_extMgm::isLoaded('templavoila'))      {
-                               $onclick = "document.location='".t3lib_extMgm::extRelPath('templavoila').'mod1/index.php?cmd=crPage&positionPid='.$pid."';";
+               if ($TSconfigProp['overrideWithExtension'])     {
+                       if (t3lib_extMgm::isLoaded($TSconfigProp['overrideWithExtension']))     {
+                               $onclick = "document.location='".t3lib_extMgm::extRelPath($TSconfigProp['overrideWithExtension']).'mod1/index.php?cmd=crPage&positionPid='.$pid."';";
                                return $onclick;
                        }
                }
@@ -346,7 +349,6 @@ class t3lib_positionMap {
         * @see onClickEvent()
         */
        function getModConfig($pid)     {
-               global $BE_USER;
                if (!isset($this->getModConfigCache[$pid]))     {
                                // Acquiring TSconfig for this PID:
                        $this->getModConfigCache[$pid] = t3lib_BEfunc::getModTSconfig($pid,$this->modConfigStr);
@@ -551,4 +553,4 @@ class t3lib_positionMap {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_positionmap.php'])      {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_positionmap.php']);
 }
-?>
+?>
\ No newline at end of file