mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Linting
This commit is contained in:
parent
388baa01b4
commit
f6a7bddd8d
@ -88,7 +88,7 @@ class GridFieldLevelup implements GridField_HTMLProvider
|
||||
$template = SSViewer::get_templates_by_class($this, '', __CLASS__);
|
||||
return array(
|
||||
'before' => $forTemplate->renderWith($template),
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
public function setAttributes($attrs)
|
||||
|
@ -139,11 +139,11 @@ if (!defined('BASE_URL')) {
|
||||
) {
|
||||
$requestURI = $_SERVER['REQUEST_URI'];
|
||||
// Check if /base/public or /base are in the request
|
||||
foreach ([$baseURL, dirname($baseURL)] as $candidate) {
|
||||
if (stripos($requestURI, $candidate) === 0) {
|
||||
return $candidate;
|
||||
}
|
||||
foreach ([$baseURL, dirname($baseURL)] as $candidate) {
|
||||
if (stripos($requestURI, $candidate) === 0) {
|
||||
return $candidate;
|
||||
}
|
||||
}
|
||||
// Ambiguous
|
||||
return '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user