Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-15 15:51:09 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-15 15:51:09 +0300
commitb5f61ba0e260acd220adc3e8b4f6285b0d265ca7 (patch)
treeb325292e21e891ae49d918dd04eaa2b9f247634d /build
parent08a71b176f5b23fa4e57213dcbadcf7bdef0ab04 (diff)
If there is no copyright notice print comment line
Diffstat (limited to 'build')
-rw-r--r--build/license.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/license.php b/build/license.php
index cd043498c49..5ada91a0f33 100644
--- a/build/license.php
+++ b/build/license.php
@@ -154,7 +154,12 @@ With help from many libraries and frameworks including:
} else {
$license = str_replace('@AUTHORS@', $authors, $this->licenseText);
}
- $license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
+
+ if ($copyrightNotices === '') {
+ $license = str_replace('@COPYRIGHT@', ' *', $license);
+ } else {
+ $license = str_replace('@COPYRIGHT@', $copyrightNotices, $license);
+ }
$source = $this->eatOldLicense($source);
$source = "<?php" . PHP_EOL . $license . PHP_EOL . $source;