aboutsummaryrefslogtreecommitdiffstats
path: root/apps/profile/templates/404-profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/profile/templates/404-profile.php')
-rw-r--r--apps/profile/templates/404-profile.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/profile/templates/404-profile.php b/apps/profile/templates/404-profile.php
new file mode 100644
index 00000000000..3f2d8731347
--- /dev/null
+++ b/apps/profile/templates/404-profile.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+/** @var array $_ */
+/** @var \OCP\IL10N $l */
+/** @var \OCP\Defaults $theme */
+// @codeCoverageIgnoreStart
+if (!isset($_)) { //standalone page is not supported anymore - redirect to /
+ require_once '../../lib/base.php';
+
+ $urlGenerator = \OC::$server->getURLGenerator();
+ header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
+ exit;
+}
+// @codeCoverageIgnoreEnd
+?>
+<?php if (isset($_['content'])) : ?>
+ <?php print_unescaped($_['content']) ?>
+<?php else : ?>
+ <div class="body-login-container update">
+ <div class="icon-big icon-error"></div>
+ <h2><?php p($l->t('Profile not found')); ?></h2>
+ <p class="infogroup"><?php p($l->t('The profile does not exist.')); ?></p>
+ <p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
+ <?php p($l->t('Back to %s', [$theme->getName()])); ?>
+ </a></p>
+ </div>
+<?php endif; ?>