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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
a21da9f9
Commit
a21da9f9
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
fixing returns
parent
1093cdd8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/public/response.php
+7
-7
7 additions, 7 deletions
lib/public/response.php
lib/public/util.php
+1
-1
1 addition, 1 deletion
lib/public/util.php
with
8 additions
and
8 deletions
lib/public/response.php
+
7
−
7
View file @
a21da9f9
...
@@ -42,7 +42,7 @@ class Response {
...
@@ -42,7 +42,7 @@ class Response {
* null cache indefinitly
* null cache indefinitly
*/
*/
static
public
function
enableCaching
(
$cache_time
=
null
)
{
static
public
function
enableCaching
(
$cache_time
=
null
)
{
return
(
\OC_Response
::
enableCaching
(
$cache_time
)
);
\OC_Response
::
enableCaching
(
$cache_time
);
}
}
/**
/**
...
@@ -51,7 +51,7 @@ class Response {
...
@@ -51,7 +51,7 @@ class Response {
* @param string $lastModified time when the reponse was last modified
* @param string $lastModified time when the reponse was last modified
*/
*/
static
public
function
setLastModifiedHeader
(
$lastModified
)
{
static
public
function
setLastModifiedHeader
(
$lastModified
)
{
return
(
\OC_Response
::
setLastModifiedHeader
(
$lastModified
)
);
\OC_Response
::
setLastModifiedHeader
(
$lastModified
);
}
}
/**
/**
...
@@ -59,7 +59,7 @@ class Response {
...
@@ -59,7 +59,7 @@ class Response {
* @see enableCaching with cache_time = 0
* @see enableCaching with cache_time = 0
*/
*/
static
public
function
disableCaching
()
{
static
public
function
disableCaching
()
{
return
(
\OC_Response
::
disableCaching
()
)
;
\OC_Response
::
disableCaching
();
}
}
/**
/**
...
@@ -68,7 +68,7 @@ class Response {
...
@@ -68,7 +68,7 @@ class Response {
* @param string $etag token to use for modification check
* @param string $etag token to use for modification check
*/
*/
static
public
function
setETagHeader
(
$etag
)
{
static
public
function
setETagHeader
(
$etag
)
{
return
(
\OC_Response
::
setETagHeader
(
$etag
)
);
\OC_Response
::
setETagHeader
(
$etag
);
}
}
/**
/**
...
@@ -76,7 +76,7 @@ class Response {
...
@@ -76,7 +76,7 @@ class Response {
* @param string $filepath of file to send
* @param string $filepath of file to send
*/
*/
static
public
function
sendFile
(
$filepath
)
{
static
public
function
sendFile
(
$filepath
)
{
return
(
\OC_Response
::
sendFile
(
$filepath
)
);
\OC_Response
::
sendFile
(
$filepath
);
}
}
/**
/**
...
@@ -86,7 +86,7 @@ class Response {
...
@@ -86,7 +86,7 @@ class Response {
* DateTime object when to expire response
* DateTime object when to expire response
*/
*/
static
public
function
setExpiresHeader
(
$expires
)
{
static
public
function
setExpiresHeader
(
$expires
)
{
return
(
\OC_Response
::
setExpiresHeader
(
$expires
)
);
\OC_Response
::
setExpiresHeader
(
$expires
);
}
}
/**
/**
...
@@ -94,6 +94,6 @@ class Response {
...
@@ -94,6 +94,6 @@ class Response {
* @param string $location to redirect to
* @param string $location to redirect to
*/
*/
static
public
function
redirect
(
$location
)
{
static
public
function
redirect
(
$location
)
{
return
(
\OC_Response
::
redirect
(
$location
)
);
\OC_Response
::
redirect
(
$location
);
}
}
}
}
This diff is collapsed.
Click to expand it.
lib/public/util.php
+
1
−
1
View file @
a21da9f9
...
@@ -298,7 +298,7 @@ class Util {
...
@@ -298,7 +298,7 @@ class Util {
* Todo: Write howto
* Todo: Write howto
*/
*/
public
static
function
callCheck
()
{
public
static
function
callCheck
()
{
return
(
\OC_Util
::
callCheck
()
)
;
\OC_Util
::
callCheck
();
}
}
/**
/**
...
...
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