Skip to content
Snippets Groups Projects
Commit b670f915 authored by SNA's avatar SNA
Browse files

No commit message

No commit message
parent a0bcebb2
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,15 @@ class notes
*/
public function build_modules_tables()
{
$xmlconfig = simplexml_load_file("modules".DIRECTORY_SEPARATOR."notes".DIRECTORY_SEPARATOR."xml".DIRECTORY_SEPARATOR."config.xml");
if(file_exists($_SESSION['config']['corepath'].'custom'.DIRECTORY_SEPARATOR.$_SESSION['custom_override_id'].DIRECTORY_SEPARATOR."modules".DIRECTORY_SEPARATOR."notes".DIRECTORY_SEPARATOR."xml".DIRECTORY_SEPARATOR."config.xml"))
{
$path = $_SESSION['config']['corepath'].'custom'.DIRECTORY_SEPARATOR.$_SESSION['custom_override_id'].DIRECTORY_SEPARATOR."modules".DIRECTORY_SEPARATOR."notes".DIRECTORY_SEPARATOR."xml".DIRECTORY_SEPARATOR."config.xml";
}
else
{
$path = "modules".DIRECTORY_SEPARATOR."notes".DIRECTORY_SEPARATOR."xml".DIRECTORY_SEPARATOR."config.xml";
}
$xmlconfig = simplexml_load_file($path);
foreach($xmlconfig->TABLENAME as $TABLENAME)
{
$_SESSION['tablename']['not_notes'] = (string) $TABLENAME->not_notes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment