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
12498490
Commit
12498490
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
introduce OC_Helper::linkToDocs()
parent
148d2616
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/helper.php
+9
-0
9 additions, 0 deletions
lib/private/helper.php
lib/private/template/functions.php
+5
-2
5 additions, 2 deletions
lib/private/template/functions.php
lib/private/util.php
+4
-4
4 additions, 4 deletions
lib/private/util.php
with
18 additions
and
6 deletions
lib/private/helper.php
+
9
−
0
View file @
12498490
...
@@ -58,6 +58,15 @@ class OC_Helper {
...
@@ -58,6 +58,15 @@ class OC_Helper {
return
OC
::
$server
->
getURLGenerator
()
->
linkTo
(
$app
,
$file
,
$args
);
return
OC
::
$server
->
getURLGenerator
()
->
linkTo
(
$app
,
$file
,
$args
);
}
}
/**
* @param $key
* @return string url to the online documentation
*/
public
static
function
linkToDocs
(
$key
)
{
$theme
=
new
OC_Defaults
();
return
$theme
->
getDocBaseUrl
()
.
'/server/5.0/go.php?to='
.
$key
;
}
/**
/**
* @brief Creates an absolute url
* @brief Creates an absolute url
* @param string $app app
* @param string $app app
...
...
This diff is collapsed.
Click to expand it.
lib/private/template/functions.php
+
5
−
2
View file @
12498490
...
@@ -35,9 +35,12 @@ function link_to( $app, $file, $args = array() ) {
...
@@ -35,9 +35,12 @@ function link_to( $app, $file, $args = array() ) {
return
OC_Helper
::
linkTo
(
$app
,
$file
,
$args
);
return
OC_Helper
::
linkTo
(
$app
,
$file
,
$args
);
}
}
/**
* @param $key
* @return string url to the online documentation
*/
function
link_to_docs
(
$key
)
{
function
link_to_docs
(
$key
)
{
$theme
=
new
OC_Defaults
();
return
OC_Helper
::
linkToDocs
(
$key
);
return
$theme
->
getDocBaseUrl
()
.
'/server/5.0/go.php?to='
.
$key
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
lib/private/util.php
+
4
−
4
View file @
12498490
...
@@ -303,7 +303,7 @@ class OC_Util {
...
@@ -303,7 +303,7 @@ class OC_Util {
//common hint for all file permissions error messages
//common hint for all file permissions error messages
$permissionsHint
=
'Permissions can usually be fixed by '
$permissionsHint
=
'Permissions can usually be fixed by '
.
'<a href="'
.
link_to_d
ocs
(
'admin-dir_permissions'
)
.
'<a href="'
.
OC_Helper
::
linkToD
ocs
(
'admin-dir_permissions'
)
.
'" target="_blank">giving the webserver write access to the root directory</a>.'
;
.
'" target="_blank">giving the webserver write access to the root directory</a>.'
;
// Check if config folder is writable.
// Check if config folder is writable.
...
@@ -311,7 +311,7 @@ class OC_Util {
...
@@ -311,7 +311,7 @@ class OC_Util {
$errors
[]
=
array
(
$errors
[]
=
array
(
'error'
=>
"Can't write into config directory"
,
'error'
=>
"Can't write into config directory"
,
'hint'
=>
'This can usually be fixed by '
'hint'
=>
'This can usually be fixed by '
.
'<a href="'
.
link_to_d
ocs
(
'admin-dir_permissions'
)
.
'<a href="'
.
OC_Helper
::
linkToD
ocs
(
'admin-dir_permissions'
)
.
'" target="_blank">giving the webserver write access to the config directory</a>.'
.
'" target="_blank">giving the webserver write access to the config directory</a>.'
);
);
}
}
...
@@ -324,7 +324,7 @@ class OC_Util {
...
@@ -324,7 +324,7 @@ class OC_Util {
$errors
[]
=
array
(
$errors
[]
=
array
(
'error'
=>
"Can't write into apps directory"
,
'error'
=>
"Can't write into apps directory"
,
'hint'
=>
'This can usually be fixed by '
'hint'
=>
'This can usually be fixed by '
.
'<a href="'
.
link_to_d
ocs
(
'admin-dir_permissions'
)
.
'<a href="'
.
OC_Helper
::
linkToD
ocs
(
'admin-dir_permissions'
)
.
'" target="_blank">giving the webserver write access to the apps directory</a> '
.
'" target="_blank">giving the webserver write access to the apps directory</a> '
.
'or disabling the appstore in the config file.'
.
'or disabling the appstore in the config file.'
);
);
...
@@ -340,7 +340,7 @@ class OC_Util {
...
@@ -340,7 +340,7 @@ class OC_Util {
$errors
[]
=
array
(
$errors
[]
=
array
(
'error'
=>
"Can't create data directory ("
.
$CONFIG_DATADIRECTORY
.
")"
,
'error'
=>
"Can't create data directory ("
.
$CONFIG_DATADIRECTORY
.
")"
,
'hint'
=>
'This can usually be fixed by '
'hint'
=>
'This can usually be fixed by '
.
'<a href="'
.
link_to_d
ocs
(
'admin-dir_permissions'
)
.
'<a href="'
.
OC_Helper
::
linkToD
ocs
(
'admin-dir_permissions'
)
.
'" target="_blank">giving the webserver write access to the root directory</a>.'
.
'" target="_blank">giving the webserver write access to the root directory</a>.'
);
);
}
}
...
...
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