CMS MADE SIMPLE FORGE

CGExtensions

 

[#11828] render function always use /tmp/cache for output JS or CSS

avatar
Created By: Philippe Thomas (filto)
Date Submitted: Thu May 31 22:28:53 -0400 2018

Assigned To: Robert Campbell (calguy1000)
Version: 1.60.4
CMSMS Version: 2.2.7
Severity: Minor
Resolution: None
State: Open
Summary:
render function always use /tmp/cache for output JS or CSS
Detailed Description:
render function  always use /tmp/cache for output JS or CSS

CGExtensions/lib/jsloader/class.jsloader.php

function "render" does not refer to config.php for JS and CSS output directories
and always refer to '/tmp/cache/'

and it does not interract with http or https request.

L812
if( $do_js_tag ) {
$cache_url = $config['root_url'].'/tmp/cache/'.basename($cache_js);

.....

if( $do_css_tag ) {
$cache_url = $config['root_url'].'/tmp/cache/'.basename($cache_css);



maybe in lib/classes/class.config.php
it could be usefull to have these functions :

smart_public_cache_url()

smart_css_url()

smart_assets_url()


History