Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Fix php error in asset_path function #1129

Merged
merged 2 commits into from
Oct 13, 2017
Merged

Fix php error in asset_path function #1129

merged 2 commits into from
Oct 13, 2017

Conversation

JPOak
Copy link
Contributor

@JPOak JPOak commented Oct 12, 2017

#1128 Fix error. Ahhhhh.

@@ -15,7 +15,8 @@

if ( ! function_exists( 'foundationpress_asset_path' ) ) :
function foundationpress_asset_path( $filename ) {
$dir = end( explode ( '.' , $filename) );
$tmp = explode('.', $filename);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JPOak please push another commit with the following changes:

  1. Let's use a more descriptive name than $tmp. Change it to $filename_split.
  2. Put spaces after opening parentheses and before closing parentheses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok Ok!

@olefredrik olefredrik merged commit 5da32e3 into olefredrik:master Oct 13, 2017
@JPOak JPOak deleted the fix-asset-path-error branch October 13, 2017 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants