Browse Source

If there is no copyright notice print comment line

tags/v11.0RC2
Roeland Jago Douma 7 years ago
parent
commit
b5f61ba0e2
No account linked to committer's email address
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      build/license.php

+ 6
- 1
build/license.php View File

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

Loading…
Cancel
Save