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
4c0d6dc9
Commit
4c0d6dc9
authored
13 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
make OC_HOOKS actually work
parent
3e47ce3c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/base.php
+5
-5
5 additions, 5 deletions
lib/base.php
lib/filesystem.php
+12
-0
12 additions, 0 deletions
lib/filesystem.php
with
17 additions
and
5 deletions
lib/base.php
+
5
−
5
View file @
4c0d6dc9
...
...
@@ -91,9 +91,9 @@ require_once('plugin.php');
$error
=
(
count
(
OC_UTIL
::
checkServer
())
>
0
);
if
(
!
$error
){
OC_PLUGIN
::
loadPlugins
(
""
);
}
//
if(!$error){
//disable untill plugin system is proper converted to the new code base
//
OC_PLUGIN::loadPlugins( "" );
//
}
OC_USER
::
setBackend
(
OC_CONFIG
::
getValue
(
"userbackend"
,
"database"
));
OC_GROUP
::
setBackend
(
OC_CONFIG
::
getValue
(
"groupbackend"
,
"database"
));
...
...
@@ -191,7 +191,7 @@ class OC_UTIL {
* @return array
*/
public
static
function
getVersion
(){
return
array
(
1
,
2
,
0
);
return
array
(
1
,
60
,
0
);
}
/**
...
...
@@ -406,7 +406,7 @@ class OC_HOOK{
}
// Call all slots
foreach
(
$registered
[
$signalclass
][
$signalname
]
as
$i
){
foreach
(
self
::
$registered
[
$signalclass
][
$signalname
]
as
$i
){
call_user_func
(
array
(
$i
[
"class"
],
$i
[
"name"
]
),
$params
);
}
...
...
This diff is collapsed.
Click to expand it.
lib/filesystem.php
+
12
−
0
View file @
4c0d6dc9
...
...
@@ -194,6 +194,18 @@ class OC_FILESYSTEM{
}
return
$foundMountPoint
;
}
/**
* return the path to a local version of the file
* we need this because we can't know if a file is stored local or not from outside the filestorage and for some purposes a local file is needed
* @param string path
* @return string
*/
static
public
function
getLocalFile
(
$path
){
$parent
=
substr
(
$path
,
0
,
strrpos
(
$path
,
'/'
));
if
(
self
::
canRead
(
$parent
)
and
$storage
=
self
::
getStorage
(
$path
)){
return
$storage
->
getLocalFile
(
self
::
getInternalPath
(
$path
));
}
}
static
public
function
mkdir
(
$path
){
$parent
=
substr
(
$path
,
0
,
strrpos
(
$path
,
'/'
));
...
...
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