Hey guys,
I am building a module and having a few people test it with fairly good results. However there is one thing that is cropping up every now and then.
My module uses some JS in the admin and I am including it in the head like so:
<.script type='text/javascript' charset='utf-8' src='/".$PREFS->ini('system_folder', TRUE)."modules/lg_module/scripts/jquery.ui-1.0/jquery.tablesorter.pack.js'>
The problem is that
$PREFS->ini('system_folder', TRUE)
is sometimes returning ‘system’ rather than the actual path to the system folder. What would be causing this?
Is there a reliable way to get the system folder into a url?
Cheers Leei
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.