fix issue #51: add link on the logo
This commit is contained in:
parent
48d80edb0a
commit
6984efdafd
7 changed files with 40 additions and 3 deletions
|
|
@ -97,6 +97,7 @@ class JsController extends Controller
|
|||
$targetBlankApps = $this->config->getAppValueArray('target-blank-apps', '[]');
|
||||
$useAvatar = $this->config->getAppValueBool('use-avatar', '0');
|
||||
$isForced = $this->config->getAppValueBool('force', '0');
|
||||
$addLogoLink = $this->config->getAppValueBool('add-logo-link', '1');
|
||||
$avatar = null;
|
||||
$settings = null;
|
||||
|
||||
|
|
@ -141,6 +142,8 @@ class JsController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$indexUrl = OC::$server->getURLGenerator()->linkTo('', 'index.php');
|
||||
|
||||
return [
|
||||
'opener-position' => $this->config->getAppValue('opener-position', 'before'),
|
||||
'opener-hover' => $this->config->getAppValueBool('opener-hover', '0'),
|
||||
|
|
@ -156,6 +159,7 @@ class JsController extends Controller
|
|||
'target-blank-apps' => $targetBlankApps,
|
||||
'settings' => $settings,
|
||||
'logo' => $this->themingDefaults->getLogo(),
|
||||
'logo-link' => $addLogoLink ? $indexUrl : null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue