diff --git a/.travis.yml b/.travis.yml index fc0913f..99366b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ php: env: global: - - CORE_RELEASE=3 + - CORE_RELEASE=master matrix: - DB=MYSQL - DB=PGSQL diff --git a/README.md b/README.md index c1097b7..fea12af 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ If more isolation of code, security, or performance is needed, then consider run ## Requirements -* SilverStripe 3.1 +* SilverStripe 4.x ## Installation diff --git a/code/extensions/FileSubsites.php b/code/extensions/FileSubsites.php index 2aee52c..44eb3b0 100644 --- a/code/extensions/FileSubsites.php +++ b/code/extensions/FileSubsites.php @@ -57,7 +57,7 @@ class FileSubsites extends DataExtension { /** * Update any requests to limit the results to the current site */ - public function augmentSQL(SQLQuery &$query) { + public function augmentSQL(SQLSelect $query) { if(Subsite::$disable_subsite_filter) return; // If you're querying by ID, ignore the sub-site - this is a bit ugly... (but it was WAYYYYYYYYY worse) diff --git a/code/extensions/GroupSubsites.php b/code/extensions/GroupSubsites.php index 11f0b9d..dcd3e6e 100644 --- a/code/extensions/GroupSubsites.php +++ b/code/extensions/GroupSubsites.php @@ -107,7 +107,7 @@ class GroupSubsites extends DataExtension implements PermissionProvider { /** * Update any requests to limit the results to the current site */ - public function augmentSQL(SQLQuery &$query) { + public function augmentSQL(SQLSelect $query) { if(Subsite::$disable_subsite_filter) return; if(Cookie::get('noSubsiteFilter') == 'true') return; diff --git a/code/extensions/SiteConfigSubsites.php b/code/extensions/SiteConfigSubsites.php index c0f66c2..21a441d 100644 --- a/code/extensions/SiteConfigSubsites.php +++ b/code/extensions/SiteConfigSubsites.php @@ -12,7 +12,7 @@ class SiteConfigSubsites extends DataExtension { /** * Update any requests to limit the results to the current site */ - public function augmentSQL(SQLQuery &$query) { + public function augmentSQL(SQLSelect $query) { if(Subsite::$disable_subsite_filter) return; // If you're querying by ID, ignore the sub-site - this is a bit ugly... diff --git a/code/extensions/SiteTreeSubsites.php b/code/extensions/SiteTreeSubsites.php index ebb2a2b..1ec9a6d 100644 --- a/code/extensions/SiteTreeSubsites.php +++ b/code/extensions/SiteTreeSubsites.php @@ -25,7 +25,7 @@ class SiteTreeSubsites extends DataExtension { /** * Update any requests to limit the results to the current site */ - public function augmentSQL(SQLQuery &$query, DataQuery &$dataQuery = null) { + public function augmentSQL(SQLSelect $query, DataQuery &$dataQuery = null) { if(Subsite::$disable_subsite_filter) return; if($dataQuery->getQueryParam('Subsite.filter') === false) return; diff --git a/composer.json b/composer.json index 82e472b..1ebd168 100644 --- a/composer.json +++ b/composer.json @@ -11,15 +11,15 @@ ], "require": { - "silverstripe/framework": "~3.2", - "silverstripe/cms": "~3.2" + "silverstripe/framework": "~4.0", + "silverstripe/cms": "~4.0" }, "require-dev": { "phpunit/PHPUnit": "~3.7@stable" }, "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.2.x-dev" } } }