diff --git a/Credentials/CHANGEDB.php b/Credentials/CHANGEDB.php index 5837747..699d601 100644 --- a/Credentials/CHANGEDB.php +++ b/Credentials/CHANGEDB.php @@ -114,3 +114,8 @@ ++$count; $sql[$count][0] = '3.0.01'; $sql[$count][1] = ""; + +//3.0.02 +++$count; +$sql[$count][0] = '3.0.02'; +$sql[$count][1] = ""; diff --git a/Credentials/CHANGELOG.txt b/Credentials/CHANGELOG.txt index 52e5d04..1421898 100644 --- a/Credentials/CHANGELOG.txt +++ b/Credentials/CHANGELOG.txt @@ -1,5 +1,9 @@ CHANGELOG ========= +v3.0.02 +------- +Fix file includes on Parent Dashboard for families with more than one student + v3.0.01 ------- Fix PHP warnings for systems without Mcrypt installed diff --git a/Credentials/hook_parentDashboard_credentials.php b/Credentials/hook_parentDashboard_credentials.php index fafb327..045370c 100644 --- a/Credentials/hook_parentDashboard_credentials.php +++ b/Credentials/hook_parentDashboard_credentials.php @@ -20,16 +20,7 @@ $returnInt = null; //Module includes -$included = false; -$includes = get_included_files(); -foreach ($includes as $include) { - if (strpos(str_replace('\\', '/', $include), '/modules/Credentials/moduleFunctions.php') !== false) { - $included = true; - } -} -if ($included == false) { - require $_SESSION[$guid]['absolutePath'].'/modules/Credentials/moduleFunctions.php'; -} +require_once $_SESSION[$guid]['absolutePath'].'/modules/Credentials/moduleFunctions.php'; if (isActionAccessible($guid, $connection2, '/modules/Credentials/hook_parentDashboard_credentials.php') == false) { //Acess denied diff --git a/Credentials/manifest.php b/Credentials/manifest.php index e3f2eac..0cccc51 100644 --- a/Credentials/manifest.php +++ b/Credentials/manifest.php @@ -25,7 +25,7 @@ $entryURL = 'credentials.php'; $type = 'Additional'; $category = 'Admin'; -$version = '3.0.01'; +$version = '3.0.02'; $author = 'Ross Parker'; $url = 'http://rossparker.org'; diff --git a/Credentials/version.php b/Credentials/version.php index 824fd45..ecf6e2c 100644 --- a/Credentials/version.php +++ b/Credentials/version.php @@ -20,4 +20,4 @@ /** * Sets version information. */ -$moduleVersion = '3.0.01'; +$moduleVersion = '3.0.02';