Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
N
Nextcloud mail - PostGuard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Laura Kolijn
Nextcloud mail - PostGuard
Commits
429705ab
Commit
429705ab
authored
Aug 11, 2014
by
Thomas Imbreckx
Browse files
Options
Downloads
Patches
Plain Diff
Throw an exception instead of exiting when autload.php cannot be included
parent
5fa77ee1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
appinfo/app.php
+2
-8
2 additions, 8 deletions
appinfo/app.php
with
2 additions
and
8 deletions
appinfo/app.php
+
2
−
8
View file @
429705ab
...
...
@@ -2,15 +2,9 @@
use
OCA\Mail\HordeTranslationHandler
;
$autoload
=
__DIR__
.
'/../vendor/autoload.php'
;
if
(
!
is_readable
(
$autoload
))
{
print
'Cannot read "autoload.php". Did you run composer ?'
.
"<pre>cd path/to/owncloud/apps/mail
\n
"
.
"curl -sS https://getcomposer.org/installer | php
\n
"
.
'php composer.phar install</pre>'
;
exit
;
if
((
@
include_once
__DIR__
.
'/../vendor/autoload.php'
)
===
false
)
{
throw
new
Exception
(
'Cannot include autoload. Did you run install dependencies using composer?'
);
}
require_once
$autoload
;
$l
=
OC_L10N
::
get
(
'mail'
);
// bypass Horde Translation system
...
...
...
...
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
sign in
to comment