ukko: small optimization: move js creation to install time
This commit is contained in:
parent
e273111340
commit
1f9e36868e
@ -49,6 +49,7 @@
|
|||||||
function ukko_install($settings) {
|
function ukko_install($settings) {
|
||||||
if (!file_exists($settings['uri']))
|
if (!file_exists($settings['uri']))
|
||||||
@mkdir($settings['uri'], 0777) or error("Couldn't create " . $settings['uri'] . ". Check permissions.", true);
|
@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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
else {
|
else {
|
||||||
file_write($settings['uri'] . '/index.html', $ukko->build());
|
file_write($settings['uri'] . '/index.html', $ukko->build());
|
||||||
}
|
}
|
||||||
|
|
||||||
file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class ukko {
|
class ukko {
|
||||||
|
Loading…
Reference in New Issue
Block a user