mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2238 from pine3ree/patch-2
use identity operator + code consistency
This commit is contained in:
commit
b4dfefd97d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user