Skip to content

Commit

Permalink
Better fallback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 14, 2015
1 parent 114b004 commit 3bd8943
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/minit-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function __construct( $handler, $extension = null ) {

$this->handler = $handler;

if ( ! empty( $extension ) )
$this->extension = $extension;
else
$this->extension = get_class( $handler );
if ( empty( $extension ) )
$extension = get_class( $handler );

$this->extension = $extension;

}

Expand Down

0 comments on commit 3bd8943

Please sign in to comment.