From 3ff871d4a5fb3103a4c30183377b7672bda91571 Mon Sep 17 00:00:00 2001 From: Jane Adelmann Date: Wed, 17 Apr 2019 14:30:45 +0300 Subject: [PATCH] Small CSS fixes, fix user agreement saving, new version 3.3. --- lib.php | 13 ++++++++----- version.php | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib.php b/lib.php index 959a766..8317731 100644 --- a/lib.php +++ b/lib.php @@ -137,7 +137,8 @@ background-color: ' . $color . '; color: black; cursor: pointer; border-radius: 3px 3px 3px 3px; -margin: 4px;" +margin: 4px; +display: inline-block;" href="#" title="' . $title . '" class="plagiarism_pchkorg_report_id_score" onclick="document.getElementById(\'' . $formid . '\').submit(); return false;"> @@ -155,7 +156,8 @@ text-decoration: none; background-color: #eeeded; color: black; border-radius: 3px 3px 3px 3px; -margin: 4px;" +margin: 4px; +display: inline-block;" href="#" class="plagiarism_pchkorg_report_id_score"> logo ' . $label . ' @@ -168,7 +170,8 @@ text-decoration: none; background-color: #eeeded; color: black; border-radius: 3px 3px 3px 3px; -margin: 4px;" +margin: 4px; +display: inline-block;" href="#" class="plagiarism_pchkorg_report_id_score"> logo ' . $label . ' @@ -571,11 +574,11 @@ margin: 4px;" } else { $agreementwhere = array( 'cm' => 0, - 'name' => 'accepter_agreement', + 'name' => 'accepted_agreement', 'value' => '1' ); $agreementaccepted = $DB->get_records('plagiarism_pchkorg_config', $agreementwhere); - if (!$agreementaccepted) { + if (empty($agreementaccepted)) { $apiprovider->save_accepted_agreement(); $DB->insert_record('plagiarism_pchkorg_config', $agreementwhere); } diff --git a/version.php b/version.php index a7031c1..71b603b 100644 --- a/version.php +++ b/version.php @@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die(); if (!isset($plugin)) { $plugin = new stdClass(); } -$plugin->version = 2019041101; +$plugin->version = 2019041701; $plugin->requires = 2017051501; // Requires Moodle 3.3 . -$plugin->release = 'v3.2'; +$plugin->release = 'v3.3'; $plugin->maturity = MATURITY_STABLE; $plugin->component = 'plagiarism_pchkorg'; $plugin->dependencies = array(