use identity operator + code consistency

- use identity operator === to check string
- use single quotes for consistency 
- simplify code using the ternary operator
This commit is contained in:
maks 2018-08-17 14:38:24 +02:00 committed by GitHub
parent 13625547d3
commit 75bc2da406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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