Skip to content

Commit 44c1b99

Browse files
committed
grabs-edv local_adminer: new release for adminer 4.7.6
1 parent 61cf010 commit 44c1b99

File tree

11 files changed

+736
-689
lines changed

11 files changed

+736
-689
lines changed

Diff for: CHANGES.md

+5
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,8 @@
101101
### Version 2020011200
102102
* it is based on adminer-4.7.5
103103
* This version works with Moodle 3.5, 3.6, 3.7, 3.8
104+
105+
### Version 2020020400
106+
* it is based on adminer-4.7.6
107+
* small changes for coding style
108+
* This version works with Moodle 3.5, 3.6, 3.7, 3.8

Diff for: classes/privacy/provider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/**
1818
* Run the code checker from the web.
1919
*
20-
* @package local
21-
* @subpackage adminer
20+
* @package local_adminer
21+
* @author Andreas Grabs <[email protected]>
2222
* @copyright Andreas Grabs
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/

Diff for: db/access.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616

1717
/**
18-
* @author Andrew Hancox <[email protected]>
19-
* @package local
20-
* @subpackage adminer
18+
* Capability definitions
19+
*
20+
* @package local_adminer
21+
* @author Andreas Grabs <[email protected]>
22+
* @copyright Andreas Grabs
23+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2124
*/
2225

2326
defined('MOODLE_INTERNAL') || die();

Diff for: index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/**
1818
* Run the code checker from the web.
1919
*
20-
* @package local
21-
* @subpackage adminer
20+
* @package local_adminer
21+
* @author Andreas Grabs <[email protected]>
2222
* @copyright Andreas Grabs
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/

Diff for: lang/en/local_adminer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
/**
1818
* Language strings
1919
*
20-
* @package local
21-
* @subpackage adminer
22-
* @copyright 2011 Andreas Grabs
20+
* @package local_adminer
21+
* @author Andreas Grabs <[email protected]>
22+
* @copyright Andreas Grabs
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

Diff for: legacy/legacy.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
height: 100%;
77
top: 45px;
88
}
9-
.modal-dialog, .modal-content, .modal-body {
9+
.modal-dialog,
10+
.modal-content,
11+
.modal-body {
1012
width: 100%;
1113
height: 90%;
1214
max-height: 100%;

Diff for: lib/adminer.php

+658-657
Large diffs are not rendered by default.

Diff for: settings.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
/**
1818
* Add page to admin menu.
1919
*
20-
* @package local
21-
* @subpackage adminer
22-
* @copyright 2011 Andreas Grabs
20+
* @package local_adminer
21+
* @author Andreas Grabs <[email protected]>
22+
* @copyright Andreas Grabs
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

Diff for: styles.css

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
html > body #menu li a[href*="&select="] {
22
float: left;
3-
width: 0px;
3+
width: 0;
44
height: 18px;
55
margin-left: -2px;
66
margin-right: 2px;
@@ -12,27 +12,27 @@ html > body .links a[href*="&select="],
1212
html > body #menu li a[href*="&select="],
1313
html > body #content form table thead > tr > td a[href*="&select="],
1414
html > body #content table a[id|="Rows"] {
15-
background: url([[pix:e/table]]) no-repeat 0px 0px;
15+
background: url([[pix:e/table]]) no-repeat 0 0;
1616
background-size: contain;
1717
padding-left: 25px;
1818
}
19-
html>/**/body #menu p.links a[href$="&sql="] {
20-
background: url([[pix:e/source_code]]) no-repeat 0px 0px;
19+
html > body #menu p.links a[href$="&sql="] {
20+
background: url([[pix:e/source_code]]) no-repeat 0 0;
2121
background-size: contain;
2222
padding-left: 25px;
2323
}
2424
html > body #menu p.links a[href$="&import="] {
25-
background: url([[pix:t/restore]]) no-repeat 0px 0px;
25+
background: url([[pix:t/restore]]) no-repeat 0 0;
2626
background-size: contain;
2727
padding-left: 25px;
2828
}
2929
html > body #menu p.links a[href*="&dump="] {
30-
background: url([[pix:t/backup]]) no-repeat 0px 0px;
30+
background: url([[pix:t/backup]]) no-repeat 0 0;
3131
background-size: contain;
3232
padding-left: 25px;
3333
}
3434
html > body #menu p.links a[href*="&create="] {
35-
background: url([[pix:t/add]]) no-repeat 0px 0px;
35+
background: url([[pix:t/add]]) no-repeat 0 0;
3636
background-size: contain;
3737
padding-left: 25px;
3838
}
@@ -44,34 +44,34 @@ html > body #content table a[id|="Rows"] {
4444
float: left;
4545
width: 100%;
4646
height: 100%;
47-
padding: 2px 0px 1px 22px;
47+
padding: 2px 0 1px 22px;
4848
margin-right: 5px;
4949
}
5050
html > body #content table a[id|="Index_length"],
5151
html > body #content p.links a[href*="&indexes="] {
52-
background: url([[pix:t/edit]]) no-repeat 0px 0px;
52+
background: url([[pix:t/edit]]) no-repeat 0 0;
5353
background-size: contain;
5454
padding-left: 25px;
5555
}
5656
html > body #content p a[href*="&edit="],
5757
html > body #content table a[id|="Data_free"] {
58-
background: url([[pix:t/add]]) no-repeat 0px 0px;
58+
background: url([[pix:t/add]]) no-repeat 0 0;
5959
background-size: contain;
6060
padding-left: 25px;
6161
}
6262
html > body table a[href*="&create="],
6363
html > body #content p.links a[href*="&create="] {
64-
background: url([[pix:t/edit]]) no-repeat 0px 0px;
64+
background: url([[pix:t/edit]]) no-repeat 0 0;
6565
background-size: contain;
6666
padding-left: 25px;
6767
}
6868
html > body table a[href*="&create="] {
69-
background: url([[pix:t/edit]]) no-repeat 0px 0px;
69+
background: url([[pix:t/edit]]) no-repeat 0 0;
7070
background-size: contain;
7171
padding-left: 25px;
7272
}
7373
html > body #content p.links a[href*="&create="] {
74-
background: url([[pix:t/add]]) no-repeat 0px 0px;
74+
background: url([[pix:t/add]]) no-repeat 0 0;
7575
background-size: contain;
7676
padding-left: 25px;
7777
}

Diff for: templates/adminer.mustache

+36
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
{{!
2+
This file is part of Moodle - http://moodle.org/
3+
4+
Moodle is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
Moodle is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16+
}}
17+
{{!
18+
@template local_adminer/adminer
19+
20+
Modal to show the adminer iframe.
21+
22+
Context variables required for this template:
23+
* adminerurl The src for the iframe to show the adminer page.
24+
* adminerlaunchtitle The title of the button to show the modal.
25+
* framebackgroundurl The url in the frame before loading the adminer url.
26+
* title The title for the modal.
27+
28+
Example context (json):
29+
{
30+
"adminerurl": "https://example.org/local/adminer/lib/run_adminer.php",
31+
"adminerlaunchtitle": "Launch Adminer",
32+
"framebackgroundurl": "https://example.org/pix/y/loading.gif",
33+
"title": "Moodle Adminer"
34+
}
35+
}}
36+
137
<style type="text/css">
238
.modal-dialog {
339
max-width: 80%;

Diff for: version.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
/**
1818
* Version details.
1919
*
20-
* @package local
21-
* @subpackage adminer
22-
* @copyright 2011 Andreas Grabs
20+
* @package local_adminer
21+
* @author Andreas Grabs <[email protected]>
22+
* @copyright Andreas Grabs
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

2626
defined('MOODLE_INTERNAL') || die;
2727

28-
$plugin->version = 2020011200;
29-
$plugin->release = '4.7.5 (2020011200)';
28+
$plugin->version = 2020020400;
29+
$plugin->release = '4.7.6 (2020020400)';
3030
$plugin->requires = 2018050800;
3131
$plugin->maturity = MATURITY_STABLE;
3232
$plugin->component = 'local_adminer';

0 commit comments

Comments
 (0)