Merge pull request #2238 from pine3ree/patch-2

use identity operator + code consistency
This commit is contained in:
Robbie Averill 2018-08-18 09:28:01 +12:00 committed by GitHub
commit b4dfefd97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -443,11 +443,7 @@ HTML;
}
// Prepare action for template search
if ($action == "index") {
$action = "";
} else {
$action = '_' . $action;
}
$action = $action === 'index' ? '' : '_' . $action;
$templatesFound = [];
// Find templates for the record + action together - e.g. Page_action.ss