Permalink
Browse files

Merge pull request #1262 from benjaminpick/media_params_cms_229

change yes/no to true/false as will be committed in joomla-cms
  • Loading branch information...
2 parents 8390cef + d9c60e6 commit 1e54a48d50d8b7c14cae6a8e95873c32bc5460f3 @realityking realityking committed Jun 12, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 libraries/legacy/form/field/media.php
@@ -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;

0 comments on commit 1e54a48

Please sign in to comment.