fixed/simplified util2 file paths
This commit is contained in:
@ -11,11 +11,7 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
$opt['rootpath'] = '../../';
|
||||
|
||||
// chdir to proper directory (needed for cronjobs)
|
||||
chdir(substr(realpath($_SERVER['PHP_SELF']), 0, strrpos(realpath($_SERVER['PHP_SELF']), '/')));
|
||||
|
||||
$opt['rootpath'] = dirname(__FILE__) . '/../../';
|
||||
require($opt['rootpath'] . 'lib2/cli.inc.php');
|
||||
|
||||
// test for user who runs the cronjob
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Data import functions are in util2/cron/modules/geokrety.class.php.
|
||||
***************************************************************************/
|
||||
|
||||
$opt['rootpath'] = '../../';
|
||||
$opt['rootpath'] = dirname(__FILE__) . '/../../';
|
||||
require_once($opt['rootpath'] . 'lib2/cli.inc.php');
|
||||
|
||||
$itemwps = array();
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Data import functions are in util2/cron/modules/geokrety.class.php.
|
||||
***************************************************************************/
|
||||
|
||||
$opt['rootpath'] = '../../';
|
||||
$opt['rootpath'] = dirname(__FILE__) . '/../../';
|
||||
require_once($opt['rootpath'] . 'lib2/cli.inc.php');
|
||||
|
||||
if (count($argv) != 2 || $argv[1] != 'run')
|
||||
|
Reference in New Issue
Block a user