Skip to content

Commit

Permalink
! copy webfonts with default theme copy
Browse files Browse the repository at this point in the history
Signed-off-by: Spuds <spuds@spudsdesign.com>
  • Loading branch information
Spuds committed Jul 13, 2014
1 parent a2bb898 commit ed71cd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources/admin/ManageThemes.controller.php
Expand Up @@ -1079,9 +1079,10 @@ public function action_install()
if (function_exists('apache_reset_timeout'))
@apache_reset_timeout();

// Create subdirectories for css and javascript files.
// Create subdirectories for css, javascript and font files.
mkdir($theme_dir . '/css', 0777);
mkdir($theme_dir . '/scripts', 0777);
mkdir($theme_dir . '/webfonts', 0777);

// Copy over the default non-theme files.
$to_copy = array('/index.php', '/index.template.php', '/scripts/theme.js');
Expand All @@ -1091,9 +1092,10 @@ public function action_install()
@chmod($theme_dir . $file, 0777);
}

// And now the entire css & images directories!
// And now the entire css, images and webfonts directories!
copytree($settings['default_theme_dir'] . '/css', $theme_dir . '/css');
copytree($settings['default_theme_dir'] . '/images', $theme_dir . '/images');
copytree($settings['default_theme_dir'] . '/webfonts', $theme_dir . '/webfonts');
package_flush_cache();

$theme_name = $_REQUEST['copy'];
Expand Down

0 comments on commit ed71cd1

Please sign in to comment.