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
10bbbc8c
Commit
10bbbc8c
authored
12 years ago
by
Frank Karlitschek
Browse files
Options
Downloads
Patches
Plain Diff
new checkAppEnabled call
parent
33c343ed
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/public/app.php
+14
-1
14 additions, 1 deletion
lib/public/app.php
with
14 additions
and
1 deletion
lib/public/app.php
+
14
−
1
View file @
10bbbc8c
...
...
@@ -41,6 +41,7 @@ class App {
return
\OC_USER
::
getUser
();
}
/**
* @brief makes owncloud aware of this app
* @param $data array with all information
...
...
@@ -62,7 +63,6 @@ class App {
}
/**
* register an admin form to be shown
*/
...
...
@@ -92,6 +92,7 @@ class App {
return
\OC_App
::
addNavigationEntry
(
$data
);
}
/**
* @brief Read app metadata from the info.xml file
* @param string $appid id of the app or the path of the info.xml file
...
...
@@ -102,6 +103,7 @@ class App {
return
\OC_App
::
getAppInfo
(
$appid
,
$path
);
}
/**
* register a personal form to be shown
*/
...
...
@@ -123,6 +125,7 @@ class App {
return
\OC_App
::
setActiveNavigationEntry
(
$id
);
}
/**
* @brief checks whether or not an app is enabled
* @param $app app
...
...
@@ -134,6 +137,15 @@ class App {
return
\OC_App
::
isEnabled
(
$app
);
}
/**
* Check if the app is enabled, redirects to home if not
*/
public
static
function
checkAppEnabled
(
$app
){
return
\OC_Util
::
checkAppEnabled
(
$app
);
}
/**
* get the last version of the app, either from appinfo/version or from appinfo/info.xml
*/
...
...
@@ -141,6 +153,7 @@ class App {
return
\OC_App
::
getAppVersion
(
$appid
);
}
/**
* @param string appid
* @return OC_FilesystemView
...
...
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