diff --git a/app/Migrations/Schema/V111/Version20160302133200.php b/app/Migrations/Schema/V111/Version20160302133200.php index d8ae222134..ce8d08ec52 100644 --- a/app/Migrations/Schema/V111/Version20160302133200.php +++ b/app/Migrations/Schema/V111/Version20160302133200.php @@ -24,7 +24,7 @@ class Version20160302133200 extends AbstractMigrationChamilo 'messaging_allow_send_push_notification', null, 'radio', - 'Platform', + 'WebServices', ($allowSendPushNotification ? 'true' : 'false'), 'MessagingAllowSendPushNotificationTitle', 'MessagingAllowSendPushNotificationComment', @@ -44,7 +44,7 @@ class Version20160302133200 extends AbstractMigrationChamilo 'messaging_gdc_project_number', null, 'textfield', - 'Platform', + 'WebServices', !empty($gdcProjectNumber) ? $gdcProjectNumber : '', 'MessagingGDCProjectNumberTitle', 'MessagingGDCProjectNumberComment', @@ -60,7 +60,7 @@ class Version20160302133200 extends AbstractMigrationChamilo 'messaging_gdc_api_key', null, 'textfield', - 'Platform', + 'WebServices', !empty($gdcApiKey) ? $gdcApiKey : '', 'MessagingGDCApiKeyTitle', 'MessagingGDCApiKeyComment', diff --git a/main/admin/settings.php b/main/admin/settings.php index c8a5dd014a..8977bae149 100755 --- a/main/admin/settings.php +++ b/main/admin/settings.php @@ -419,6 +419,7 @@ $action_images['plugins'] = 'plugins.png'; $action_images['shibboleth'] = 'shibboleth.png'; $action_images['facebook'] = 'facebook.png'; $action_images['crons'] = 'crons.png'; +$action_images['webservices'] = 'webservices.png'; $action_array = array(); $resultcategories = array(); @@ -444,6 +445,7 @@ $resultcategories[] = array('category' => 'CAS'); $resultcategories[] = array('category' => 'Shibboleth'); $resultcategories[] = array('category' => 'Facebook'); $resultcategories[] = ['category' => 'Crons']; +$resultcategories[] = ['category' => 'WebServices']; foreach ($resultcategories as $row) { $url = array(); diff --git a/main/install/data.sql b/main/install/data.sql index dc44aab874..04df130804 100644 --- a/main/install/data.sql +++ b/main/install/data.sql @@ -1806,9 +1806,9 @@ VALUES INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES -('messaging_allow_send_push_notification', NULL, 'radio', 'Platform', 'false', 'MessagingAllowSendPushNotificationText', 'MessagingAllowSendPushNotificationComment', NULL, NULL, 0), -('messaging_gdc_project_number', NULL, 'textfield', 'Platform', '', 'MessagingGDCProjectNumberTitle', 'MessagingGDCProjectNumberComment', NULL, NULL, 0), -('messaging_gdc_api_key', NULL, 'textfield', 'Platform', '', 'MessagingGDCApiKeyTitle', 'MessagingGDCApiKeyComment', NULL, NULL, 0); +('messaging_allow_send_push_notification', NULL, 'radio', 'WebServices', 'false', 'MessagingAllowSendPushNotificationText', 'MessagingAllowSendPushNotificationComment', NULL, NULL, 0), +('messaging_gdc_project_number', NULL, 'textfield', 'WebServices', '', 'MessagingGDCProjectNumberTitle', 'MessagingGDCProjectNumberComment', NULL, NULL, 0), +('messaging_gdc_api_key', NULL, 'textfield', 'WebServices', '', 'MessagingGDCApiKeyTitle', 'MessagingGDCApiKeyComment', NULL, NULL, 0); INSERT INTO settings_options (variable, value, display_text) VALUES