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;