mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-03 14:26:26 +00:00
19 lines
758 B
PHP
Executable File
19 lines
758 B
PHP
Executable File
<?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);
|
|
}
|
|
}
|
|
?>
|