1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-22 12:10:08 +00:00

Small CSS fixes, fix user agreement saving, new version 3.3.

This commit is contained in:
Jane Adelmann 2019-04-17 14:30:45 +03:00
parent 0f949be93c
commit 3ff871d4a5
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72
2 changed files with 10 additions and 7 deletions

13
lib.php
View File

@ -137,7 +137,8 @@ background-color: ' . $color . ';
color: black; color: black;
cursor: pointer; cursor: pointer;
border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;
margin: 4px;" margin: 4px;
display: inline-block;"
href="#" title="' . $title . '" href="#" title="' . $title . '"
class="plagiarism_pchkorg_report_id_score" class="plagiarism_pchkorg_report_id_score"
onclick="document.getElementById(\'' . $formid . '\').submit(); return false;"> onclick="document.getElementById(\'' . $formid . '\').submit(); return false;">
@ -155,7 +156,8 @@ text-decoration: none;
background-color: #eeeded; background-color: #eeeded;
color: black; color: black;
border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;
margin: 4px;" margin: 4px;
display: inline-block;"
href="#" class="plagiarism_pchkorg_report_id_score"> href="#" class="plagiarism_pchkorg_report_id_score">
<img src="' . $imgsrc . '" alt="logo" width="20px;" /> <img src="' . $imgsrc . '" alt="logo" width="20px;" />
' . $label . ' ' . $label . '
@ -168,7 +170,8 @@ text-decoration: none;
background-color: #eeeded; background-color: #eeeded;
color: black; color: black;
border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px;
margin: 4px;" margin: 4px;
display: inline-block;"
href="#" class="plagiarism_pchkorg_report_id_score"> href="#" class="plagiarism_pchkorg_report_id_score">
<img src="' . $imgsrc . '" alt="logo" width="20px;" /> <img src="' . $imgsrc . '" alt="logo" width="20px;" />
' . $label . ' ' . $label . '
@ -571,11 +574,11 @@ margin: 4px;"
} else { } else {
$agreementwhere = array( $agreementwhere = array(
'cm' => 0, 'cm' => 0,
'name' => 'accepter_agreement', 'name' => 'accepted_agreement',
'value' => '1' 'value' => '1'
); );
$agreementaccepted = $DB->get_records('plagiarism_pchkorg_config', $agreementwhere); $agreementaccepted = $DB->get_records('plagiarism_pchkorg_config', $agreementwhere);
if (!$agreementaccepted) { if (empty($agreementaccepted)) {
$apiprovider->save_accepted_agreement(); $apiprovider->save_accepted_agreement();
$DB->insert_record('plagiarism_pchkorg_config', $agreementwhere); $DB->insert_record('plagiarism_pchkorg_config', $agreementwhere);
} }

View File

@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
if (!isset($plugin)) { if (!isset($plugin)) {
$plugin = new stdClass(); $plugin = new stdClass();
} }
$plugin->version = 2019041101; $plugin->version = 2019041701;
$plugin->requires = 2017051501; // Requires Moodle 3.3 . $plugin->requires = 2017051501; // Requires Moodle 3.3 .
$plugin->release = 'v3.2'; $plugin->release = 'v3.3';
$plugin->maturity = MATURITY_STABLE; $plugin->maturity = MATURITY_STABLE;
$plugin->component = 'plagiarism_pchkorg'; $plugin->component = 'plagiarism_pchkorg';
$plugin->dependencies = array( $plugin->dependencies = array(