From fee6059dfcee49544aea86a231b31247d3252fa0 Mon Sep 17 00:00:00 2001 From: Ben Moore Date: Wed, 3 Jan 2018 21:26:35 -0600 Subject: [PATCH] Bug: src/NgTheme.php:68 missing \ with new DirectoryIterator() --- src/NgTheme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NgTheme.php b/src/NgTheme.php index 9c49f43..c3aff50 100644 --- a/src/NgTheme.php +++ b/src/NgTheme.php @@ -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;