1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-22 13:42:48 +02:00

Auto-cast source lists to array so the user needn't make an array for one file/source.

This commit is contained in:
Steve Clay
2008-06-27 21:41:37 +00:00
parent 16079919fb
commit 9127fa750e
5 changed files with 8 additions and 7 deletions

View File

@@ -36,11 +36,11 @@ class Minify_Controller_Files extends Minify_Controller_Base {
*
* Controller options:
*
* 'files': (required) array of complete file paths
* 'files': (required) array of complete file paths, or a single path
*/
public function setupSources($options) {
// strip controller options
$files = $options['files'];
$files = (array)$options['files'];
unset($options['files']);
$sources = array();