From 8feb7b5f42b7e916760b8fdee814a68c7d6ddc53 Mon Sep 17 00:00:00 2001 From: Sandra Kuipers Date: Wed, 12 Jan 2022 14:43:10 +0800 Subject: [PATCH] v1.0.07 --- Stream/CHANGEDB.php | 5 +++++ Stream/CHANGELOG.txt | 4 ++++ Stream/manifest.php | 2 +- Stream/posts_manage_addProcess.php | 3 +-- Stream/posts_manage_editProcess.php | 3 +-- Stream/version.php | 2 +- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Stream/CHANGEDB.php b/Stream/CHANGEDB.php index 865eeac..48392cd 100644 --- a/Stream/CHANGEDB.php +++ b/Stream/CHANGEDB.php @@ -40,3 +40,8 @@ $sql[$count][0] = '1.0.06'; $sql[$count][1] = " "; + +//v1.0.07 +$sql[$count][0] = '1.0.07'; +$sql[$count][1] = " +"; diff --git a/Stream/CHANGELOG.txt b/Stream/CHANGELOG.txt index 9caa41c..538a676 100644 --- a/Stream/CHANGELOG.txt +++ b/Stream/CHANGELOG.txt @@ -1,5 +1,9 @@ CHANGELOG ========= +v1.0.07 +------- +Fixed Validator class to instantiate using the container + v1.0.06 ------- Removed deprecated function calls diff --git a/Stream/manifest.php b/Stream/manifest.php index da225b8..9fb81d7 100644 --- a/Stream/manifest.php +++ b/Stream/manifest.php @@ -25,7 +25,7 @@ $entryURL = 'stream.php'; $type = 'Additional'; $category = 'Other'; -$version = '1.0.06'; +$version = '1.0.07'; $author = 'Sanda Kuipers, Harry Merrett & Ross Parker'; $url = 'https://gibbonedu.org'; diff --git a/Stream/posts_manage_addProcess.php b/Stream/posts_manage_addProcess.php index 71be5ed..28e1292 100644 --- a/Stream/posts_manage_addProcess.php +++ b/Stream/posts_manage_addProcess.php @@ -51,8 +51,7 @@ $partialFail = false; // Sanitize the whole $_POST array - $validator = new Validator($session); - $_POST = $validator->sanitize($_POST); + $_POST = $container->get(Validator::class)->sanitize($_POST); $data = [ 'gibbonSchoolYearID' => $session->get('gibbonSchoolYearID'), diff --git a/Stream/posts_manage_editProcess.php b/Stream/posts_manage_editProcess.php index 0338f05..9bc0bd8 100644 --- a/Stream/posts_manage_editProcess.php +++ b/Stream/posts_manage_editProcess.php @@ -43,8 +43,7 @@ $partialFail = false; // Sanitize the whole $_POST array - $validator = new Validator($session); - $_POST = $validator->sanitize($_POST); + $_POST = $container->get(Validator::class)->sanitize($_POST); $data = [ 'post' => $_POST['post'] ?? '', diff --git a/Stream/version.php b/Stream/version.php index 0762a02..64db369 100644 --- a/Stream/version.php +++ b/Stream/version.php @@ -20,4 +20,4 @@ /** * Sets version information. */ -$moduleVersion = '1.0.06'; +$moduleVersion = '1.0.07';