Skip to content

Commit

Permalink
Merge pull request joomla#1262 from benjaminpick/media_params_cms_229
Browse files Browse the repository at this point in the history
change yes/no to true/false as will be committed in joomla-cms
  • Loading branch information
realityking committed Jun 12, 2012
2 parents 8390cef + d9c60e6 commit 1e54a48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libraries/legacy/form/field/media.php
Expand Up @@ -170,13 +170,17 @@ protected function getInput()
$showAsTooltip = false;
switch ($preview)
{
case 'no':
case 'no': // Deprecated parameter value
case 'false':
case 'none':
$showPreview = false;
break;
case 'yes':

case 'yes': // Deprecated parameter value
case 'true':
case 'show':
break;

case 'tooltip':
default:
$showAsTooltip = true;
Expand Down

0 comments on commit 1e54a48

Please sign in to comment.