mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-25 23:06:03 +03:00
__DIR__ -> dirname(__FILE__)
This commit is contained in:
parent
aaf5ca234c
commit
06293c784a
@ -36,7 +36,7 @@ if (ini_get('phar.readonly')) {
|
||||
$pharName = 'PHPExcel.phar';
|
||||
|
||||
// target folder
|
||||
$sourceDir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Classes' . DIRECTORY_SEPARATOR;
|
||||
$sourceDir = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Classes' . DIRECTORY_SEPARATOR;
|
||||
|
||||
// default meta information
|
||||
$metaData = array(
|
||||
|
@ -48,7 +48,7 @@ $inputFileNames = 'templates/32readwrite*[0-9].xlsx';
|
||||
if ((isset($argc)) && ($argc > 1)) {
|
||||
$inputFileNames = array();
|
||||
for($i = 1; $i < $argc; ++$i) {
|
||||
$inputFileNames[] = __DIR__ . '/templates/' . $argv[$i];
|
||||
$inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i];
|
||||
}
|
||||
} else {
|
||||
$inputFileNames = glob($inputFileNames);
|
||||
|
@ -68,7 +68,7 @@ $inputFileNames = 'templates/32readwrite*[0-9].xlsx';
|
||||
if ((isset($argc)) && ($argc > 1)) {
|
||||
$inputFileNames = array();
|
||||
for($i = 1; $i < $argc; ++$i) {
|
||||
$inputFileNames[] = __DIR__ . '/templates/' . $argv[$i];
|
||||
$inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i];
|
||||
}
|
||||
} else {
|
||||
$inputFileNames = glob($inputFileNames);
|
||||
|
@ -68,7 +68,7 @@ $inputFileNames = 'templates/36write*.xlsx';
|
||||
if ((isset($argc)) && ($argc > 1)) {
|
||||
$inputFileNames = array();
|
||||
for($i = 1; $i < $argc; ++$i) {
|
||||
$inputFileNames[] = __DIR__ . '/templates/' . $argv[$i];
|
||||
$inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i];
|
||||
}
|
||||
} else {
|
||||
$inputFileNames = glob($inputFileNames);
|
||||
|
@ -91,7 +91,7 @@ $inputFileNames = 'templates/36write*.xlsx';
|
||||
if ((isset($argc)) && ($argc > 1)) {
|
||||
$inputFileNames = array();
|
||||
for($i = 1; $i < $argc; ++$i) {
|
||||
$inputFileNames[] = __DIR__ . '/templates/' . $argv[$i];
|
||||
$inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i];
|
||||
}
|
||||
} else {
|
||||
$inputFileNames = glob($inputFileNames);
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
include_once __DIR__.'/Complex.php';
|
||||
include_once dirname(__FILE__).'/Complex.php';
|
||||
|
||||
|
||||
class complexAssert {
|
||||
|
Loading…
Reference in New Issue
Block a user