Skip to content

Commit

Permalink
Don't show the "can't find ffmpeg" message to non-admins. Fixes #1528.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 15, 2010
1 parent cd48b89 commit b9e11a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/views/form_uploadify.html.php
Expand Up @@ -112,7 +112,7 @@ function(data) {
</script>

<div class="requires-flash">
<? if ($suhosin_session_encrypt || !$movies_allowed): ?>
<? if ($suhosin_session_encrypt || (identity::active_user()->admin && !$movies_allowed)): ?>
<div class="g-message-block g-info">
<? if ($suhosin_session_encrypt): ?>
<p class="g-error">
Expand All @@ -122,7 +122,7 @@ function(data) {
</p>
<? endif ?>

<? if (!$movies_allowed): ?>
<? if (identity::active_user()->admin && !$movies_allowed): ?>
<p class="g-warning">
<?= t("Can't find <i>ffmpeg</i> on your system. Movie uploading disabled. <a href=\"%help_url\">Help!</a>", array("help_url" => "http://codex.gallery2.org/Gallery3:FAQ#Why_does_it_say_I.27m_missing_ffmpeg.3F")) ?>
</p>
Expand Down

0 comments on commit b9e11a6

Please sign in to comment.