diff options
| author | czaks <marcin@6irc.net> | 2015-04-05 16:20:59 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-05 16:20:59 +0200 |
| commit | 1f9e36868e82fe563028f8c35aaee3c9ba21fa23 (patch) | |
| tree | 7b3ff85d2e01b350bd11543095103c7fc5af1e72 | |
| parent | e2731113404bda42ee506e29b6927165b7576f61 (diff) | |
ukko: small optimization: move js creation to install time
| -rw-r--r-- | templates/themes/ukko/info.php | 1 | ||||
| -rw-r--r-- | templates/themes/ukko/theme.php | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/templates/themes/ukko/info.php b/templates/themes/ukko/info.php index 45a687fc..9a0a53e6 100644 --- a/templates/themes/ukko/info.php +++ b/templates/themes/ukko/info.php @@ -49,6 +49,7 @@ function ukko_install($settings) { if (!file_exists($settings['uri'])) @mkdir($settings['uri'], 0777) or error("Couldn't create " . $settings['uri'] . ". Check permissions.", true); + file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array())); } } diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php index e1fa0a3f..d6fc303c 100644 --- a/templates/themes/ukko/theme.php +++ b/templates/themes/ukko/theme.php @@ -17,8 +17,6 @@ else { file_write($settings['uri'] . '/index.html', $ukko->build()); } - - file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array())); } class ukko { |
