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
2018-08-17 21:54:24 +12:00
2018-08-16 11:47:49 +12:00
2018-08-17 14:51:36 +02:00
2018-07-30 17:10:37 +01:00
2018-08-16 11:47:49 +12:00
2018-07-23 15:58:14 +01:00
2017-10-03 17:05:54 +13:00
2017-10-12 11:30:11 +13:00
2016-05-11 09:46:28 +12:00
2017-10-03 18:15:41 +13:00
2016-09-27 17:10:47 +13:00
2018-04-12 16:06:49 +12:00
2018-06-15 17:32:15 +12:00

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.

Description
No description provided
Readme 28 MiB
Languages
PHP 73.3%
JavaScript 20%
Gherkin 4%
Scheme 2.1%
SCSS 0.6%