ukko: small optimization: move js creation to install time

This commit is contained in:
czaks 2015-04-05 16:20:59 +02:00
parent e273111340
commit 1f9e36868e
2 changed files with 1 additions and 2 deletions

View File

@ -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()));
}
}

View File

@ -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 {