Skip to content

Commit ddfdb6e

Browse files
Merge pull request #19 from TechnologyEnhancedLearning/bugfix/FixAPIPath
Update api call to use Moodle theme base URL
2 parents c61a293 + 89ca537 commit ddfdb6e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

classes/output/core_renderer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ public function get_global_header_data() {
116116
error_log("theme_nhse: User not logged in, skipping OIDC token fetch.");
117117
}
118118

119-
$url = 'https://lh-openapi.dev.local/User/GetLHUserNavigation';
119+
// --- The rest of your existing API call logic ---
120+
$api_endpoint_path = 'User/GetLHUserNavigation';
121+
$url = $api_base_url . $api_endpoint_path;
122+
123+
124+
120125
try
121126
{
122127
$curl = new \curl();

0 commit comments

Comments
 (0)