File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ' ]) && isset ($ GLOBALS ['DS_CONFIG ' ])) {
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 ' ) {
You can’t perform that action at this time.
0 commit comments