Adding file if exists in order to add the multiple url fixes $_SERVER['SERVER_NAME'] and $_SERVER['HTTP_HOST'] before calling global.inc

1.9.x
Julio Montoya 12 years ago
parent cba09543a6
commit c908fe6a18
  1. 5
      main/cron/import_csv.php

@ -4,8 +4,9 @@ if (PHP_SAPI !='cli') {
die('Run this script through the command line or comment this line in the code');
}
//$_SERVER['SERVER_NAME'] = '';
//$_SERVER['HTTP_HOST'] = '';
if (file_exists('multiple_url_fix.php')) {
require 'multiple_url_fix.php';
}
require_once __DIR__.'/../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'log.class.php';

Loading…
Cancel
Save