Permalink
Browse files

bugfixed the multiple usage of fileCss parameter

  • Loading branch information...
1 parent b3370cb commit 7ccead124192a601403f5f1dc2ae9bd809320a62 @goldsky committed Mar 15, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 core/components/filedownload/elements/snippets/filedownload.snippet.php
@@ -452,13 +452,7 @@ function stripslashes_gpc(&$value) {
* @since ver 1.2.0
* @deprecated deprecated since 2.0.0. Use 'cssFile' instead.
*/
-$scriptProperties['fileCss'] = $modx->getOption('fileCss', $scriptProperties);
-if (!empty($scriptProperties['fileCss']) && empty($scriptProperties['cssFile'])) {
- $scriptProperties['cssFile'] = $scriptProperties['fileCss'];
-} else {
- $scriptProperties['cssFile'] = $modx->getOption('cssFile', $scriptProperties);
-}
-unset($scriptProperties['fileCss']);
+$scriptProperties['cssFile'] = $modx->getOption('cssFile', $scriptProperties);
/**
* This specifies the class that will be applied to the directory for multi-
* directory grouping.

0 comments on commit 7ccead1

Please sign in to comment.