From: Mischa POSLAWSKY Date: Sun, 20 Dec 2020 15:55:24 +0000 (+0100) Subject: edit/head: optional admin stylesheet for editor overrides X-Git-Tag: v5.0^0 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/189155ee61481277a57fc4342048a763e5b54ecb edit/head: optional admin stylesheet for editor overrides Fix logout hiding if logged out. --- diff --git a/edit/head.inc.php b/edit/head.inc.php index 76d9ea4..b2b50f3 100644 --- a/edit/head.inc.php +++ b/edit/head.inc.php @@ -25,11 +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"); $Page->head = ob_get_clean();