From bcfa275cffb391add0acb29362ace99342b565f2 Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 16 Feb 2026 14:05:45 +0100 Subject: [PATCH] Fix Modify Website page: use Angular array annotation for modifyWebsitesController Prevents $injector:unpr (Unknown provider) when JS is minified by preserving $scope and $http dependency names in array form. --- public/static/websiteFunctions/websiteFunctions.js | 4 ++-- static/js/websiteFunctions.js | 4 ++-- static/websiteFunctions/websiteFunctions.js | 4 ++-- websiteFunctions/static/js/websiteFunctions.js | 4 ++-- websiteFunctions/static/websiteFunctions/websiteFunctions.js | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/static/websiteFunctions/websiteFunctions.js b/public/static/websiteFunctions/websiteFunctions.js index f6c5f9dcb..1ac19a0ce 100644 --- a/public/static/websiteFunctions/websiteFunctions.js +++ b/public/static/websiteFunctions/websiteFunctions.js @@ -10742,7 +10742,7 @@ $("#websiteSuccessfullyModified").hide(); $("#modifyWebsiteLoading").hide(); $("#modifyWebsiteButton").hide(); -app.controller('modifyWebsitesController', function ($scope, $http) { +app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) { // Initialize home directory variables $scope.homeDirectories = []; @@ -10915,7 +10915,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) { }; -}); +}]); /* Java script code to Modify Pacakge ends here */ diff --git a/static/js/websiteFunctions.js b/static/js/websiteFunctions.js index 17c1bbb4b..5b4ebab69 100644 --- a/static/js/websiteFunctions.js +++ b/static/js/websiteFunctions.js @@ -10176,7 +10176,7 @@ $("#websiteSuccessfullyModified").hide(); $("#modifyWebsiteLoading").hide(); $("#modifyWebsiteButton").hide(); -app.controller('modifyWebsitesController', function ($scope, $http) { +app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) { $scope.fetchWebsites = function () { @@ -10313,7 +10313,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) { }; -}); +}]); /* Java script code to Modify Pacakge ends here */ diff --git a/static/websiteFunctions/websiteFunctions.js b/static/websiteFunctions/websiteFunctions.js index dd86b2455..b776aeb01 100644 --- a/static/websiteFunctions/websiteFunctions.js +++ b/static/websiteFunctions/websiteFunctions.js @@ -10742,7 +10742,7 @@ $("#websiteSuccessfullyModified").hide(); $("#modifyWebsiteLoading").hide(); $("#modifyWebsiteButton").hide(); -app.controller('modifyWebsitesController', function ($scope, $http) { +app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) { $scope.fetchWebsites = function () { @@ -10879,7 +10879,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) { }; -}); +}]); /* Java script code to Modify Pacakge ends here */ diff --git a/websiteFunctions/static/js/websiteFunctions.js b/websiteFunctions/static/js/websiteFunctions.js index 17c1bbb4b..5b4ebab69 100644 --- a/websiteFunctions/static/js/websiteFunctions.js +++ b/websiteFunctions/static/js/websiteFunctions.js @@ -10176,7 +10176,7 @@ $("#websiteSuccessfullyModified").hide(); $("#modifyWebsiteLoading").hide(); $("#modifyWebsiteButton").hide(); -app.controller('modifyWebsitesController', function ($scope, $http) { +app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) { $scope.fetchWebsites = function () { @@ -10313,7 +10313,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) { }; -}); +}]); /* Java script code to Modify Pacakge ends here */ diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index dd86b2455..b776aeb01 100644 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -10742,7 +10742,7 @@ $("#websiteSuccessfullyModified").hide(); $("#modifyWebsiteLoading").hide(); $("#modifyWebsiteButton").hide(); -app.controller('modifyWebsitesController', function ($scope, $http) { +app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) { $scope.fetchWebsites = function () { @@ -10879,7 +10879,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) { }; -}); +}]); /* Java script code to Modify Pacakge ends here */