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

View File

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