Skip to content

Commit

Permalink
Bug: src/NgTheme.php:68 missing \ with new DirectoryIterator()
Browse files Browse the repository at this point in the history
  • Loading branch information
BMO-tech committed Jan 4, 2018
1 parent c529fdd commit fee6059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NgTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function deregister_wp_scripts(){

public function register_src_assets(){
if( ! isset( $this->template_url ) ) $this->template_url = get_template_directory_uri();
$src_dir = new DirectoryIterator( get_stylesheet_directory() . '/src' );
$src_dir = new \DirectoryIterator( get_stylesheet_directory() . '/src' );
foreach( $src_dir as $file){
$full_name = basename( $file );
$url = $this->template_url . '/src/' . $full_name;
Expand Down

0 comments on commit fee6059

Please sign in to comment.