Skip to content

Commit

Permalink
assign excluded_extensions to local variable before checking of empty
Browse files Browse the repository at this point in the history
and update the read me file badges
  • Loading branch information
mahmoud committed Sep 8, 2014
1 parent eb2e3cc commit cc4868a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

# CDN Assets Manager

[![Build Status](https://travis-ci.org/thephpleague/statsd.png?branch=master)](https://travis-ci.org/Vinelab/cdn)
[![Total Downloads](https://poser.pugx.org/league/statsd/downloads.png)](https://packagist.org/packages/vinelab/cdn)
[![Latest Stable Version](https://poser.pugx.org/vinelab/cdn/v/stable.svg)](https://packagist.org/packages/vinelab/cdn)
[![Latest Unstable Version](https://poser.pugx.org/vinelab/cdn/v/unstable.svg)](https://packagist.org/packages/vinelab/cdn)
[![Total Downloads](https://poser.pugx.org/vinelab/cdn/downloads.svg)](https://packagist.org/packages/vinelab/cdn)
[![License](https://poser.pugx.org/vinelab/cdn/license.svg)](https://packagist.org/packages/vinelab/cdn)

Content Delivery Network Package for Laravel 4

Upload static assets of your choice to a CDN and have the file paths replaced with full URLs.
Expand Down
3 changes: 2 additions & 1 deletion src/Vinelab/Cdn/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ private function excludeThis(AssetInterface $asset_holder)
}

// exclude files (if exist) with this extensions
if ( ! empty($asset_holder->getExcludedExtensions()))
$excluded_extensions = $asset_holder->getExcludedExtensions();
if ( ! empty($excluded_extensions))
{
foreach ($asset_holder->getExcludedExtensions() as $extension) {
$this->notName('*' . $extension);
Expand Down

0 comments on commit cc4868a

Please sign in to comment.