[TYPO3-dev] TYPO3_MOD_PATH correct value

Bas van Beek bvbmedia at gmail.com
Sat Jul 10 12:39:21 CEST 2010


Hi Jan,
You could easily bypass this issue by changing the following line:

define('TYPO3_MOD_PATH', '../typo3conf/ext/cooluri/mod1/');
$BACK_PATH='../../../../typo3/';

To the following:

if (!strstr($_SERVER['PHP_SELF'],'typo3conf')) {
  $BACK_PATH = '../../../';
  define('TYPO3_MOD_PATH', 'ext/multishop/');
} else {
  $BACK_PATH = '../../../../typo3/';
  define('TYPO3_MOD_PATH', '../typo3conf/ext/multishop/');
}

Best regards,

Bas van Beek
Webdeveloper

BVB Media Ltd

E-mail: bvbmedia at gmail.com
Web: www.bvbmedia.com
LinkedIn: http://nl.linkedin.com/in/basvanbeek




More information about the TYPO3-dev mailing list