diff --git a/LICENSE b/LICENSE index 00787070e..65f4b0c70 100644 --- a/LICENSE +++ b/LICENSE @@ -1,30 +1,29 @@ -Copyright (c) 2006-2017, SilverStripe Limited - www.silverstripe.com +BSD 3-Clause License + +Copyright (c) 2006-2018, SilverStripe Limited - www.silverstripe.com All rights reserved. -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software - without specific prior written permission. +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY -OF SUCH DAMAGE. +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -Attribution -============ +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. -Some icons by Yusuke Kamiyamane -All rights reserved. Licensed under a Creative Commons Attribution 3.0 License - -default_media.png by Thibault Geffroy from The Noun Project -All rights reserved. Licensed under a [Creative Commons Attribution 3.0 License - -http://p.yusukekamiyamane.com/ -http://thenounproject.com/ -http://creativecommons.org/licenses/by/3.0/ +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index b4c0b577e..561c42aeb 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,8 @@ If you would like to make changes to the SilverStripe core codebase, we have an * [Forums](http://silverstripe.org/forums) * [Developer Mailinglist](https://groups.google.com/forum/#!forum/silverstripe-dev) * [License](./LICENSE) + +## Attribution ## + + * Some icons by [Yusuke Kamiyamane](http://p.yusukekamiyamane.com/). All rights reserved. Licensed under a [Creative Commons Attribution 3.0 License](http://creativecommons.org/licenses/by/3.0/). + * default_media.png by Thibault Geffroy from [The Noun Project](http://thenounproject.com/). All rights reserved. Licensed under a [Creative Commons Attribution 3.0 License](http://creativecommons.org/licenses/by/3.0/). diff --git a/_config/i18n.yml b/_config/i18n.yml index 32e72f433..a219828b8 100644 --- a/_config/i18n.yml +++ b/_config/i18n.yml @@ -1,6 +1,6 @@ --- Name: basei18n -Before: '/i18n' +Before: '#defaulti18n' --- SilverStripe\i18n\Data\Sources: module_priority: diff --git a/docs/en/02_Developer_Guides/02_Controllers/01_Introduction.md b/docs/en/02_Developer_Guides/02_Controllers/01_Introduction.md index 398fc525d..44c6810b4 100644 --- a/docs/en/02_Developer_Guides/02_Controllers/01_Introduction.md +++ b/docs/en/02_Developer_Guides/02_Controllers/01_Introduction.md @@ -51,7 +51,7 @@ Make sure that after you have modified the `routes.yml` file, that you clear you ```yml --- Name: mysiteroutes -After: framework/routes#coreroutes +After: framework/_config/routes#coreroutes --- SilverStripe\Control\Director: rules: diff --git a/docs/en/02_Developer_Guides/02_Controllers/02_Routing.md b/docs/en/02_Developer_Guides/02_Controllers/02_Routing.md index 4cf305a59..710906fc3 100644 --- a/docs/en/02_Developer_Guides/02_Controllers/02_Routing.md +++ b/docs/en/02_Developer_Guides/02_Controllers/02_Routing.md @@ -20,7 +20,7 @@ These routes by standard, go into a `routes.yml` file in your applications `_con ```yml --- Name: mysiteroutes -After: framework/routes#coreroutes +After: framework/_config/routes#coreroutes --- SilverStripe\Control\Director: rules: diff --git a/docs/en/02_Developer_Guides/13_i18n/index.md b/docs/en/02_Developer_Guides/13_i18n/index.md index 9cd295db6..409eace1d 100644 --- a/docs/en/02_Developer_Guides/13_i18n/index.md +++ b/docs/en/02_Developer_Guides/13_i18n/index.md @@ -337,7 +337,7 @@ To create a custom module order, you need to specify a config fragment that inse ```yml --- Name: customi18n -Before: 'defaulti18n' +Before: '#defaulti18n' --- SilverStripe\i18n\i18n: module_priority: diff --git a/src/Core/Manifest/ModuleResourceLoader.php b/src/Core/Manifest/ModuleResourceLoader.php index 33d546782..a865c7a4c 100644 --- a/src/Core/Manifest/ModuleResourceLoader.php +++ b/src/Core/Manifest/ModuleResourceLoader.php @@ -103,7 +103,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider $resource = $matches['resource']; $moduleObj = ModuleLoader::getModule($module); if (!$moduleObj) { - throw new InvalidArgumentException("Can't find module '$module'"); + throw new InvalidArgumentException("Can't find module '$module', the composer.json file may be missing from the modules installation directory"); } $resourceObj = $moduleObj->getResource($resource);