mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-10 01:36:07 +00:00
first commit
This commit is contained in:
18
src/dev/ckeditor4_head.php
Executable file
18
src/dev/ckeditor4_head.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
$contentCss = NULL;
|
||||
if ($g_config['extrapacker']['packCss'] && $g_config['extrapacker']['dir'])
|
||||
{
|
||||
// Если мы в админке, то директория может быть переопределена, но изначальная должна быть сохранена в $g_config['extrapacker']['non_admin_dir']
|
||||
$dir = isset($g_config['extrapacker']['non_admin_dir']) ? $g_config['extrapacker']['non_admin_dir'] : $g_config['extrapacker']['dir'];
|
||||
$path = "tmp/{$dir}/css/";
|
||||
|
||||
$files = glob(BASEPATH . $path . "*.css");
|
||||
if (count($files) > 0)
|
||||
{
|
||||
sort($files);
|
||||
$file = end($files);
|
||||
$contentCss = "/" . $path . basename($file);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user