MDL-69810 tool_mobile: Return support contact information via WS
[moodle.git] / admin / tool / mobile / classes / api.php
index 0fd5f72..9ea41b0 100644 (file)
@@ -323,6 +323,12 @@ class api {
             }
         }
 
+        if (empty($section) or $section == 'supportcontact') {
+            $settings->supportname = $CFG->supportname;
+            $settings->supportemail = $CFG->supportemail;
+            $settings->supportpage = $CFG->supportpage;
+        }
+
         return $settings;
     }