File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ function RestoreArchive($id)
281281{
282282 $ isSaaSTest = (stripos ($ id , '_saas_ ' ) !== false );
283283 $ saas_capture_prefix = GetSetting ("cp_saas_capture_prefix " );
284+ $ isInstantTest = (stripos ($ id , '_instant_ ' ) !== false );
284285
285286 $ ret = false ;
286287 if (TestArchiveExpired ($ id )) {
@@ -309,7 +310,7 @@ function RestoreArchive($id)
309310 }
310311 }
311312 //saas tests do not specifiy capture server in the URL, so we'll hardcode it
312- if ($ isSaaSTest ) {
313+ if ($ isSaaSTest || $ isInstantTest ) {
313314 $ capture_server = GetSetting ("cp_capture_ $ saas_capture_prefix " );
314315 $ capture_salt = GetSetting ("cp_capture_salt_ $ saas_capture_prefix " );
315316 }
@@ -417,6 +418,9 @@ function RestoreArchive($id)
417418 if ($ deleteZip ) {
418419 @unlink ($ zipfile );
419420 }
421+ if ($ isInstantTest ) {
422+ ProcessUploadedTest ($ id );
423+ }
420424 }
421425 } else {
422426 $ ret = true ;
You can’t perform that action at this time.
0 commit comments