diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2015-03-17 07:40:13 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2015-03-17 07:40:13 +0100 |
| commit | e74217a7bbd58cf76963c15c73221669e1153510 (patch) | |
| tree | be9a61b9f61797602e494c0c591c268c8b906b0f /templates/error.php | |
| parent | d0262203af0890dfc3c0128fd92e41ee03453456 (diff) | |
| download | grauphel-e74217a7bbd58cf76963c15c73221669e1153510.tar.gz grauphel-e74217a7bbd58cf76963c15c73221669e1153510.zip | |
show error message when oauth extension is missing
Diffstat (limited to 'templates/error.php')
| -rw-r--r-- | templates/error.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/error.php b/templates/error.php new file mode 100644 index 0000000..7ce4f8d --- /dev/null +++ b/templates/error.php @@ -0,0 +1,18 @@ +<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/> + +<div id="app-content" class="content"> + <div> + <h1>grauphel - Tomboy notes server</h1> + <h2>Error</h2> + <p><?php p($_['message']); ?></p> + <?php if ($_['code'] == 1001) { ?> + <p> + You need to install the PHP PECL OAuth extension to make grauphel work. + See the + <a class="lined" href="http://cweiske.de/grauphel.htm#manual"> + installation instructions</a> + for more information. + </p> + <?php } ?> + </div> +</div> |
