__DIR__ -> dirname(__FILE__)

This commit is contained in:
Filippo Tessarotto 2012-11-24 09:44:56 +01:00
parent aaf5ca234c
commit 06293c784a
6 changed files with 6 additions and 6 deletions

View File

@ -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(

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -1,6 +1,6 @@
<?php
include_once __DIR__.'/Complex.php';
include_once dirname(__FILE__).'/Complex.php';
class complexAssert {