mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-09-01 04:17:58 +02:00
additional setting for improved wp page
This commit is contained in:
@@ -4,7 +4,14 @@
|
||||
|
||||
{% block header_scripts %}
|
||||
<script>
|
||||
// Get the existing CyberCP module instead of trying to create it
|
||||
// Create or get the CyberCP module
|
||||
try {
|
||||
angular.module('CyberCP');
|
||||
} catch(err) {
|
||||
angular.module('CyberCP', []);
|
||||
}
|
||||
|
||||
// Now add our controller to the module
|
||||
angular.module('CyberCP').controller('listWordPressSites', function($scope, $http) {
|
||||
// Initialize scope variables
|
||||
$scope.wpSites = JSON.parse('{{ wpsite|escapejs }}');
|
||||
|
||||
Reference in New Issue
Block a user