Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
69a5a0c1
Commit
69a5a0c1
authored
Dec 03, 2014
by
Joas Schilling
Browse files
Stop flooding the log, when previews are disabled
parent
8c8c257c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/preview.php
View file @
69a5a0c1
...
...
@@ -98,7 +98,7 @@ class Preview {
self
::
initProviders
();
}
if
(
empty
(
self
::
$providers
))
{
if
(
empty
(
self
::
$providers
)
&&
\
OC
::
$server
->
getConfig
()
->
getSystemValue
(
'enable_previews'
,
true
)
)
{
\
OC_Log
::
write
(
'core'
,
'No preview providers exist'
,
\
OC_Log
::
ERROR
);
throw
new
\
Exception
(
'No preview providers'
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment