X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/76b939d83e563cb783d666c48b0fa9ffdac827e6..8e1d3422ac745d49bcf56152f11d5b07ea45cb38:/edit/head.inc.php?ds=sidebyside
diff --git a/edit/head.inc.php b/edit/head.inc.php
index 5c056a7..b2b50f3 100644
--- a/edit/head.inc.php
+++ b/edit/head.inc.php
@@ -1,4 +1,8 @@
file) and !is_writable($Page->file)) {
+ return;
+}
+
if (!isset($Page->raw)) {
# open bottom template as initial contents
$template = 'template.inc.html';
@@ -21,12 +25,14 @@ if (isset($Page->raw)) {
}
}
+ob_start();
+if ($csssrc = '/admin.css' and file_exists(DOCROOT . $csssrc)) {
+ printf(''."\n", $csssrc);
+}
$ckesrc = '/lib/ckeditor'; # local install
if (!file_exists(DOCROOT . $ckesrc)) {
$ckesrc = '//cdn.ckeditor.com/4.15.1/full-all'; # remote fallback
}
-ob_start();
-printf("\n", "$ckesrc/ckeditor.js");
-print ''."\n";
+printf(''."\n", "$ckesrc/ckeditor.js");
$Page->head = ob_get_clean();