You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-php/spdx-licenses/files/spdx-licenses-change-res-pa...

23 lines
872 B

# Fix the path of res/
--- ./src/SpdxLicenses.php 2015-07-15 19:38:14.000000000 +0200
+++ ./src/SpdxLicenses.php 2016-11-13 19:24:17.659442468 +0100
@@ -170,7 +170,7 @@
private function loadLicenses()
{
if (null === $this->licenses) {
- $jsonFile = file_get_contents(__DIR__ . '/../res/spdx-licenses.json');
+ $jsonFile = file_get_contents(__DIR__ . '/res/spdx-licenses.json');
$this->licenses = json_decode($jsonFile, true);
}
}
@@ -178,7 +178,7 @@
private function loadExceptions()
{
if (null === $this->exceptions) {
- $jsonFile = file_get_contents(__DIR__ . '/../res/spdx-exceptions.json');
+ $jsonFile = file_get_contents(__DIR__ . '/res/spdx-exceptions.json');
$this->exceptions = json_decode($jsonFile, true);
}
}