Skip to content

Commit 3c848a7

Browse files
update loadManifestData call
1 parent d6388fa commit 3c848a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Services/RouterService.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ public function __construct()
188188
// first time loading server and session is null causes problems for manifestService
189189
$_SESSION['api_type'] = 'eSign';
190190
}
191+
if (!isset($_SESSION['API_TEXT'])) {
192+
// load manifest data
193+
$_SESSION['API_TEXT'] = ManifestService::loadManifestData($GLOBALS['DS_CONFIG']['CodeExamplesManifest']);
194+
}
191195

192196
// To ignore the Notice instead of Isset on missing POST vars
193197
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
@@ -200,7 +204,6 @@ public function __construct()
200204

201205
if (isset($_POST['api_type'])) {
202206
$_SESSION['api_type'] = $_POST['api_type'];
203-
$_SESSION['API_TEXT'] = ManifestService::loadManifestData($GLOBALS['DS_CONFIG']['CodeExamplesManifest']);
204207
}
205208

206209
if ($_SESSION['auth_service'] == 'code_grant') {

0 commit comments

Comments
 (0)