mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
26 lines
952 B
PHP
26 lines
952 B
PHP
<?php
|
|
/** @var $_ array */
|
|
/** @var $l \OCP\IL10N */
|
|
/** @var $theme OCP\Defaults */
|
|
// @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-search icon-white"></div>
|
|
<h2><?php p($l->t('File not found')); ?></h2>
|
|
<p class="infogroup"><?php p($l->t('The document could not be found on the server. Maybe the share was deleted or has expired?')); ?></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; ?>
|