Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
32ccd662
Commit
32ccd662
authored
9 years ago
by
Joas Schilling
Browse files
Options
Downloads
Patches
Plain Diff
Revert "make knowledge base url configurable"
This reverts commit
8fb89056
.
parent
c16fd29f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/private/app.php
+1
-2
1 addition, 2 deletions
lib/private/app.php
lib/private/defaults.php
+0
-19
0 additions, 19 deletions
lib/private/defaults.php
themes/example/defaults.php
+0
-6
0 additions, 6 deletions
themes/example/defaults.php
with
1 addition
and
27 deletions
lib/private/app.php
+
1
−
2
View file @
32ccd662
...
@@ -421,7 +421,6 @@ class OC_App {
...
@@ -421,7 +421,6 @@ class OC_App {
*/
*/
public
static
function
getSettingsNavigation
()
{
public
static
function
getSettingsNavigation
()
{
$l
=
\OC
::
$server
->
getL10N
(
'lib'
);
$l
=
\OC
::
$server
->
getL10N
(
'lib'
);
$defaults
=
new
OC_Defaults
();
$settings
=
array
();
$settings
=
array
();
// by default, settings only contain the help menu
// by default, settings only contain the help menu
...
@@ -432,7 +431,7 @@ class OC_App {
...
@@ -432,7 +431,7 @@ class OC_App {
array
(
array
(
"id"
=>
"help"
,
"id"
=>
"help"
,
"order"
=>
1000
,
"order"
=>
1000
,
"href"
=>
$defaults
->
getKnowledgeBaseUrl
(
),
"href"
=>
OC_Helper
::
linkToRoute
(
"settings_help"
),
"name"
=>
$l
->
t
(
"Help"
),
"name"
=>
$l
->
t
(
"Help"
),
"icon"
=>
OC_Helper
::
imagePath
(
"settings"
,
"help.svg"
)
"icon"
=>
OC_Helper
::
imagePath
(
"settings"
,
"help.svg"
)
)
)
...
...
This diff is collapsed.
Click to expand it.
lib/private/defaults.php
+
0
−
19
View file @
32ccd662
...
@@ -46,11 +46,9 @@ class OC_Defaults {
...
@@ -46,11 +46,9 @@ class OC_Defaults {
private
$defaultSlogan
;
private
$defaultSlogan
;
private
$defaultLogoClaim
;
private
$defaultLogoClaim
;
private
$defaultMailHeaderColor
;
private
$defaultMailHeaderColor
;
private
$defaultKnowledgeBaseUrl
;
function
__construct
()
{
function
__construct
()
{
$this
->
l
=
\OC
::
$server
->
getL10N
(
'lib'
);
$this
->
l
=
\OC
::
$server
->
getL10N
(
'lib'
);
$urlGenerator
=
\OC
::
$server
->
getURLGenerator
();
$version
=
OC_Util
::
getVersion
();
$version
=
OC_Util
::
getVersion
();
$this
->
defaultEntity
=
'ownCloud'
;
/* e.g. company name, used for footers and copyright notices */
$this
->
defaultEntity
=
'ownCloud'
;
/* e.g. company name, used for footers and copyright notices */
...
@@ -66,7 +64,6 @@ class OC_Defaults {
...
@@ -66,7 +64,6 @@ class OC_Defaults {
$this
->
defaultSlogan
=
$this
->
l
->
t
(
'web services under your control'
);
$this
->
defaultSlogan
=
$this
->
l
->
t
(
'web services under your control'
);
$this
->
defaultLogoClaim
=
''
;
$this
->
defaultLogoClaim
=
''
;
$this
->
defaultMailHeaderColor
=
'#1d2d44'
;
/* header color of mail notifications */
$this
->
defaultMailHeaderColor
=
'#1d2d44'
;
/* header color of mail notifications */
$this
->
defaultKnowledgeBaseUrl
=
$urlGenerator
->
linkToRoute
(
'settings_help'
);
$themePath
=
OC
::
$SERVERROOT
.
'/themes/'
.
OC_Util
::
getTheme
()
.
'/defaults.php'
;
$themePath
=
OC
::
$SERVERROOT
.
'/themes/'
.
OC_Util
::
getTheme
()
.
'/defaults.php'
;
if
(
file_exists
(
$themePath
))
{
if
(
file_exists
(
$themePath
))
{
...
@@ -82,7 +79,6 @@ class OC_Defaults {
...
@@ -82,7 +79,6 @@ class OC_Defaults {
/**
/**
* @param string $method
* @param string $method
* @return bool
*/
*/
private
function
themeExist
(
$method
)
{
private
function
themeExist
(
$method
)
{
if
(
isset
(
$this
->
theme
)
&&
method_exists
(
$this
->
theme
,
$method
))
{
if
(
isset
(
$this
->
theme
)
&&
method_exists
(
$this
->
theme
,
$method
))
{
...
@@ -284,19 +280,4 @@ class OC_Defaults {
...
@@ -284,19 +280,4 @@ class OC_Defaults {
}
}
}
}
/**
* get knowledge base URL, will be used for the "Help"-Link in the top
* right menu
*
* @return string
*/
public
function
getKnowledgeBaseUrl
()
{
if
(
$this
->
themeExist
(
'getKnowledgeBaseUrl'
))
{
return
$this
->
theme
->
getKnowledgeBaseUrl
();
}
else
{
return
$this
->
defaultKnowledgeBaseUrl
;
}
}
}
}
This diff is collapsed.
Click to expand it.
themes/example/defaults.php
+
0
−
6
View file @
32ccd662
...
@@ -28,7 +28,6 @@ class OC_Theme {
...
@@ -28,7 +28,6 @@ class OC_Theme {
private
$themeSyncClientUrl
;
private
$themeSyncClientUrl
;
private
$themeSlogan
;
private
$themeSlogan
;
private
$themeMailHeaderColor
;
private
$themeMailHeaderColor
;
private
$themeKnowledgeBaseUrl
;
/* put your custom text in these variables */
/* put your custom text in these variables */
function
__construct
()
{
function
__construct
()
{
...
@@ -40,7 +39,6 @@ class OC_Theme {
...
@@ -40,7 +39,6 @@ class OC_Theme {
$this
->
themeSyncClientUrl
=
'https://owncloud.org/install'
;
$this
->
themeSyncClientUrl
=
'https://owncloud.org/install'
;
$this
->
themeSlogan
=
'Your custom cloud, personalized for you!'
;
$this
->
themeSlogan
=
'Your custom cloud, personalized for you!'
;
$this
->
themeMailHeaderColor
=
'#745bca'
;
$this
->
themeMailHeaderColor
=
'#745bca'
;
$this
->
themeKnowledgeBaseUrl
=
'https://doc.owncloud.org'
;
}
}
/* nothing after this needs to be adjusted */
/* nothing after this needs to be adjusted */
...
@@ -94,8 +92,4 @@ class OC_Theme {
...
@@ -94,8 +92,4 @@ class OC_Theme {
return
$this
->
themeMailHeaderColor
;
return
$this
->
themeMailHeaderColor
;
}
}
public
function
getKnowledgeBaseUrl
()
{
return
$this
->
themeKnowledgeBaseUrl
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment