mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-08-16 08:06:04 +00:00
Added config and added function for js.
This commit is contained in:
parent
caa0a90564
commit
ce1eafdbd0
@ -92,4 +92,5 @@
|
||||
$g_config['donateTransactions'] = "./tmp/donate/transactions.txt";
|
||||
$g_config['vote'] = "./tmp/vote/vote.txt";
|
||||
$g_config['voteTopics'] = "./tmp/vote/voteTopics.txt_";
|
||||
$g_config['use_js_cache'] = true;
|
||||
?>
|
||||
|
@ -173,6 +173,13 @@
|
||||
return SITE_ROOT . "{$dir}{$uri}";
|
||||
}
|
||||
|
||||
function RootCacheJS($uri = '', $version = '') {
|
||||
global $g_config;
|
||||
|
||||
return Root(($g_config['use_js_cache'] ? $uri . ".cache" :
|
||||
$uri) . "?v=" . $version);
|
||||
}
|
||||
|
||||
/**
|
||||
* Путь до корня сайта с подставкой языка, нужна для ссылок
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user