Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
b70cf435
Unverified
Commit
b70cf435
authored
4 years ago
by
Morris Jobke
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #23940 from nextcloud/enh/skip_already_loaded_apps
Skip already loaded apps in loadApps
parents
c27223f7
0dece786
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/legacy/OC_App.php
+3
-3
3 additions, 3 deletions
lib/private/legacy/OC_App.php
with
3 additions
and
3 deletions
lib/private/legacy/OC_App.php
+
3
−
3
View file @
b70cf435
...
...
@@ -94,7 +94,7 @@ class OC_App {
* @return bool
*/
public
static
function
isAppLoaded
(
string
$app
):
bool
{
return
i
n_array
(
$app
,
self
::
$loadedApps
,
true
);
return
i
sset
(
self
::
$loadedApps
[
$app
]
);
}
/**
...
...
@@ -127,7 +127,7 @@ class OC_App {
// prevent app.php from printing output
ob_start
();
foreach
(
$apps
as
$app
)
{
if
((
$types
===
[]
or
self
::
isType
(
$app
,
$types
))
&&
!
in_array
(
$app
,
self
::
$loadedApps
)
)
{
if
(
!
isset
(
self
::
$loadedApps
[
$app
])
&&
(
$types
===
[]
||
self
::
isType
(
$app
,
$types
)))
{
self
::
loadApp
(
$app
);
}
}
...
...
@@ -143,7 +143,7 @@ class OC_App {
* @throws Exception
*/
public
static
function
loadApp
(
string
$app
)
{
self
::
$loadedApps
[
]
=
$app
;
self
::
$loadedApps
[
$app
]
=
true
;
$appPath
=
self
::
getAppPath
(
$app
);
if
(
$appPath
===
false
)
{
return
;
...
...
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