Skip to content

Commit

Permalink
Merge pull request #14 from silverstripe-terraformers/upgrade/CMS-5-v…
Browse files Browse the repository at this point in the history
…ersion

CMS 5 Upgrade
  • Loading branch information
andrewandante authored Feb 23, 2023
2 parents 8e8b401 + ccec4ac commit 19c6a14
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/ControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ControllerExtension extends Extension
* @var bool
* @config
*/
private static $use_remote_js = false;
private static bool $use_remote_js = false;

public function onAfterInit()
{
Expand Down
4 changes: 2 additions & 2 deletions code/SiteConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
* Class AndrewAndante\WomensRefugeShield\SiteConfigExtension
*
* @property SiteConfig $owner
* @property int $Pridecode
* @property int $ShieldCode
*/
class SiteConfigExtension extends DataExtension
{

private static $db = [
private static array $db = [
'ShieldCode' => 'Int',
];

Expand Down
13 changes: 10 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"require":
{
"silverstripe/framework": "^4.0",
"silverstripe/siteconfig": "^4.0",
"silverstripe/cms": "^4.0"
"silverstripe/framework": "^5.0",
"silverstripe/siteconfig": "^5.0",
"silverstripe/cms": "^5.0"
},
"extra": {
"expose": [
Expand All @@ -28,5 +28,12 @@
"psr-4": {
"AndrewAndante\\WomensRefugeShield\\": "code/"
}
},
"minimum-stability": "dev",
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/vendor-plugin": true
}
}
}
2 changes: 1 addition & 1 deletion javascript/button.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function () {
window.onload = function(){
var frameName = new ds07o6pcmkorn({
const frameName = new ds07o6pcmkorn({
openElementId: "#womens-refuge-shield-button"
});
frameName.init();
Expand Down
2 changes: 1 addition & 1 deletion javascript/large_tab.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function () {
window.onload = function(){
var frameName = new ds07o6pcmkorn({
const frameName = new ds07o6pcmkorn({
left: 300,
top: 0,
iconSize: "big"
Expand Down
2 changes: 1 addition & 1 deletion javascript/small_tab.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function () {
window.onload = function(){
var frameName = new ds07o6pcmkorn({
const frameName = new ds07o6pcmkorn({
left: 300,
top: 0,
iconSize: "small"
Expand Down

0 comments on commit 19c6a14

Please sign in to comment.