Skip to content

Commit

Permalink
Imprint: Fix installation via the owncloud app store.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkascha committed Oct 28, 2014
1 parent 865e698 commit 60e6350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion imprint/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
'order' => 99999,
'href' => \OCP\Util::linkTo ('imprint', 'index.php'),
'icon' => \OCP\Util::imagePath('imprint', 'imprint-light.svg'),
'name' => \OC_L10N::get('imprint')->t("Legal notice")
'name' => \OCP\Util::getL10N ('imprint')->t("Legal notice")
));
} // if
12 changes: 4 additions & 8 deletions imprint/templates/tmpl_dummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@
<div class="imprint-factoid"> <?php p($l->t("Nothing here yet")."!");?></div>
<div class="imprint-suggestion"> <?php p($l->t("The content of the legal notice has to be configured first").".");?></div>
<div class="imprint-explanation">
<?php
if ( \OCP\User::isLoggedIn()
&& ( (method_exists('OC_User','isAdminUser')
&& OC_User::isAdminUser(\OCP\User::getUser()) )
|| OC_Group::inGroup(\OCP\User::getUser(), 'admin') ) )
p($l->t("That configuration is done in the administration section."));
else
p($l->t("That configuration has to be done by the system administration."));
<?php if ( OCP\User::checkAdminUser() ) {
p($l->t("That configuration is done in the administration section."));
else
p($l->t("That configuration has to be done by the system administration."));
?>
</a>
</div>
Expand Down

0 comments on commit 60e6350

Please sign in to comment.