Advertisement
BenjaminS

TYPO3: Predefine PATH_tslib

Feb 6th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. if (@is_dir(PATH_site.'typo3/sysext/cms/tslib/')) {
  2.     define('PATH_tslib', PATH_site.'typo3/sysext/cms/tslib/');
  3. } elseif (@is_dir(PATH_site.'tslib/')) {
  4.     define('PATH_tslib', PATH_site.'tslib/');
  5. } else {
  6.  
  7.     // define path to tslib/ here:
  8.     $configured_tslib_path = '';
  9.  
  10.     // example:
  11.     // $configured_tslib_path = '/var/www/mysite/typo3/sysext/cms/tslib/';
  12.  
  13.     define('PATH_tslib', $configured_tslib_path);
  14. }
  15. if (PATH_tslib=='') {
  16.     die('Cannot find tslib/. Please set path by defining $configured_tslib_path in '.basename(PATH_thisScript).'.');
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement