Go to file
maks 599e198e89
simplify code using !empty
Hello @robbieaverill, please check my assumption...it's been a long time since I have last used SS (v3.2 was my last, if i remember correctly)
in the following lines 438:
```php
        if (isset($this->templates[$action]) && $this->templates[$action]
            || (isset($this->templates['index']) && $this->templates['index'])
            || $this->template
        ) {
            return parent::getViewer($action);
        }
```
it looks like the 1st two (same-line) condition should be wrapped inside `()` while checking for a non-index action template .... if not just kill this PR at once. :-)
if the answer is yes then we can just use `!empty(...)` which is the same as 'isset(...) + truthy check'

kind regards, 
maks
2018-08-17 14:51:36 +02:00
.tx Rename json lang source files to .json extension 2017-05-29 17:27:41 +12:00
_config Merge branch '4.2' into 4 2018-08-17 21:54:24 +12:00
client Merge branch '4.2' into 4 2018-08-16 11:47:49 +12:00
code simplify code using !empty 2018-08-17 14:51:36 +02:00
lang Merge branch '4.2' into 4 2018-07-30 17:10:37 +01:00
templates Merge branch '4.2' into 4 2018-08-16 11:47:49 +12:00
tests Merge branch '4.2' into 4 2018-07-23 15:58:14 +01:00
.codecov.yml Setting default branch in .codecov.yml 2016-11-24 10:58:57 +00:00
.editorconfig Update composer 2017-10-12 11:30:11 +13:00
.eslintignore Add ESLint 2016-05-11 09:46:28 +12:00
.eslintrc.js Patch webpack-config temporarily 2017-10-03 18:15:41 +13:00
.gitattributes FIX Amend rules to ignore test files only 2017-12-20 11:14:04 +13:00
.gitignore Remove extraneous gitignore declarations 2017-04-06 09:34:15 +12:00
.sass-lint.yml Use sass-lint 2016-09-27 17:10:47 +13:00
.travis.yml Update Postgres version in Travis builds for 4.2.x 2018-07-23 19:26:34 +01:00
.upgrade.yml ENHANCEMENT Improve upgrade rules to support advanced upgrader rewrites (#2114) 2018-03-05 13:42:55 +13:00
CONTRIBUTING.md Add copyright note to contributing.md 2016-05-30 14:33:59 +12:00
LICENSE FIX: Rename license file to match module standard. 2017-03-29 12:50:43 +13:00
README.md Add supported module badge to readme 2018-06-15 17:32:15 +12:00
_config.php Fix tinymce issue 2017-10-03 17:05:54 +13:00
behat.yml Update selenium to chromedriver 2018-04-12 16:06:49 +12:00
composer.json Merge remote-tracking branch 'origin/4.2' into 4 2018-06-15 16:25:06 +12:00
package.json Add react-apollo and graphql-tag to dependencies and fix linting in history viewer components 2018-03-22 10:51:53 +13:00
phpcs.xml.dist Manual fixes to automatic namespacing 2017-08-09 17:09:28 +12:00
phpunit.xml.dist Test fixes for upstream changes 2017-03-30 15:37:22 +01:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:13 +01:00
webpack.config.js API Implement insert-anchor modal 2017-09-20 13:35:25 +12:00
yarn.lock Add react-apollo and graphql-tag to dependencies and fix linting in history viewer components 2018-03-22 10:51:53 +13:00

README.md

SilverStripe CMS

Build Status Latest Stable Version Latest Unstable Version codecov SilverStripe supported module Total Downloads License Dependency Status Reference Status

PHP5 Content Management System (CMS), see http://silverstripe.org. Requires the framework module and a silverstripe-installer base project.

Installation

See installation instructions.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the SilverStripe core codebase, we have an extensive guide to contributing code.