]> _ Git - cubeextranet.git/commitdiff
#1793
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 13 Nov 2017 16:11:50 +0000 (16:11 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 13 Nov 2017 16:11:50 +0000 (16:11 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 06e317ad1f98b66ca61ee5651203771634d8999c..96e12e7890aa4ad940939c603e050ff7e402761a 100644 (file)
@@ -296,20 +296,12 @@ class wsHTML5Compiler {
 
                $this->log('Start compile process');
 
-               // Copy fonts folder
-               $from = $this->assets . '/style/fonts';
-               $to = 'style/fonts';
-               $this->vdir->copyDirectory($from, $to);
-
-               // Copy images folder
-               $from = $this->assets . '/images';
-               $to = 'images';
-               $this->vdir->copyDirectory($from, $to);
-
-               // Copy images folder
-               $from = $this->assets . '/video';
-               $to = 'video';
-               $this->vdir->copyDirectory($from, $to);
+               // Raw copy of some directories
+               $directories = array('style/fonts', 'images', 'sound', 'video');
+               foreach ($directories as $directory) {
+                       $from = $this->assets . '/' . $directory;
+                       $this->vdir->copyDirectory($from, $directory);
+               }
 
                $this->log('Copied assets');
                $this->loadPlugins();