mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Rename Database to SS_Database, bug reintroduced post merge
This commit is contained in:
parent
9a4d52f754
commit
9583918d78
@ -113,7 +113,7 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider {
|
||||
if(Subsite::$disable_subsite_filter) return;
|
||||
if(Cookie::get('noSubsiteFilter') == 'true') return;
|
||||
|
||||
$q = defined('Database::USE_ANSI_SQL') ? "\"" : "`";
|
||||
$q = defined('SS_Database::USE_ANSI_SQL') ? "\"" : "`";
|
||||
|
||||
// If you're querying by ID, ignore the sub-site - this is a bit ugly...
|
||||
if(!$query->filtersOnID()) {
|
||||
@ -214,4 +214,4 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -439,7 +439,7 @@ JS;
|
||||
*/
|
||||
function accessible_sites($permCode, $includeMainSite = false, $mainSiteTitle = "Main site", $member = null) {
|
||||
// For 2.3 and 2.4 compatibility
|
||||
$q = defined('Database::USE_ANSI_SQL') ? "\"" : "`";
|
||||
$q = defined('SS_Database::USE_ANSI_SQL') ? "\"" : "`";
|
||||
|
||||
// Rationalise member arguments
|
||||
if(!$member) $member = Member::currentUser();
|
||||
|
Loading…
Reference in New Issue
Block a user