diff options
| author | uwetews <uwe.tews@googlemail.com> | 2018-08-19 02:35:46 +0200 |
|---|---|---|
| committer | uwetews <uwe.tews@googlemail.com> | 2018-08-19 02:35:46 +0200 |
| commit | 799b5cb3424f798f133839fbfdc09b613703cdfe (patch) | |
| tree | 2b721d5436da45c194f9dcdfd62f79265018d729 /utilities | |
| parent | b5e5085391100f26656276e091a0b8034e9f13c9 (diff) | |
| download | smarty-799b5cb3424f798f133839fbfdc09b613703cdfe.tar.gz smarty-799b5cb3424f798f133839fbfdc09b613703cdfe.tar.bz2 smarty-799b5cb3424f798f133839fbfdc09b613703cdfe.zip | |
- fix PSR-2 coding standards and PHPDoc blocks https://github.com/smarty-php/smarty/pull/452
https://github.com/smarty-php/smarty/pull/475
https://github.com/smarty-php/smarty/pull/473
- bugfix PHP5.2 compatibility https://github.com/smarty-php/smarty/pull/472
Diffstat (limited to 'utilities')
| -rw-r--r-- | utilities/BuildExpectedFiles.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utilities/BuildExpectedFiles.php b/utilities/BuildExpectedFiles.php index b6c368d8..b664d0c1 100644 --- a/utilities/BuildExpectedFiles.php +++ b/utilities/BuildExpectedFiles.php @@ -6,7 +6,7 @@ * Time: 23:58 */ $sysplugins = array(); -$iterator = new DirectoryIterator(__DIR__ . '/../libs/sysplugins'); +$iterator = new DirectoryIterator(dirname(__FILE__) . '/../libs/sysplugins'); foreach ($iterator as $file) { if (!$file->isDot() && 'php' == $file->getExtension()) { $filename = $file->getBasename(); @@ -14,17 +14,17 @@ foreach ($iterator as $file) { } } $plugins = array(); -$iterator = new DirectoryIterator(__DIR__ . '/../libs/plugins'); +$iterator = new DirectoryIterator(dirname(__FILE__) . '/../libs/plugins'); foreach ($iterator as $file) { if (!$file->isDot() && 'php' == $file->getExtension()) { $filename = $file->getBasename(); $plugins[ $filename ] = true; } } -$code = file_get_contents(__DIR__ . '/../libs/sysplugins/smarty_internal_testinstall.php'); +$code = file_get_contents(dirname(__FILE__) . '/../libs/sysplugins/smarty_internal_testinstall.php'); $expectedPlugins = '$expectedPlugins = ' . var_export($plugins, true); $code = preg_replace('#\$expectedPlugins =[^;]+#', $expectedPlugins, $code); $expectedSysplugins = '$expectedSysplugins = ' . var_export($sysplugins, true); $code = preg_replace('#\$expectedSysplugins =[^;]+#', $expectedSysplugins, $code); -file_put_contents(__DIR__ . '/../libs/sysplugins/smarty_internal_testinstall.php', $code); +file_put_contents(dirname(__FILE__) . '/../libs/sysplugins/smarty_internal_testinstall.php', $code); |
