Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
8700ffe6
Commit
8700ffe6
authored
Dec 03, 2014
by
Lukas Reschke
Browse files
Merge pull request #12572 from owncloud/issue/12571-disabled-preview-logflood
Stop flooding the log, when previews are disabled
parents
7291b915
69a5a0c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/preview.php
View file @
8700ffe6
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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