Skip to content

Commit 0ba5cf5

Browse files
committed
Revert "Allow shadowing from PC2"
PC^2 is working to support multiple contests in the same instance. This reverts commit a5cf337.
1 parent 0778924 commit 0ba5cf5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ protected function loadContest(): void
522522
case ExternalContestSource::TYPE_CCS_API:
523523
try {
524524
// The base URL is the URL of the CCS API root.
525-
// Proper is '^(.*\/)contests\/.*/', but PC^2 doesn't expose this (yet).
526-
if (preg_match('/^(.*\/)contest(s\/.*)?/',
525+
if (preg_match('/^(.*\/)contests\/.*/',
527526
$this->source->getSource(), $matches) === 0) {
528527
$this->loadingError = 'Cannot determine base URL. Did you pass a CCS API contest URL?';
529528
$this->cachedContestData = null;

0 commit comments

Comments
 (0)