autoupdate install by USERLEVEL_ADMIN only
This commit is contained in:
parent
b56c0169b1
commit
90cb4ef9ad
|
@ -1,17 +1,24 @@
|
|||
0.6
|
||||
* Added install by USERLEVEL_ADMIN only
|
||||
|
||||
0.5
|
||||
* View and follow upgrade process
|
||||
|
||||
0.4
|
||||
* Fixed checksums var
|
||||
* Enhanced cleanTemplatesC()
|
||||
* Added some debug and process messages
|
||||
|
||||
0.3
|
||||
* Compatibility fixes [brockhaus]
|
||||
|
||||
0.2:
|
||||
* Fixed: Didn't create new directories which were part of the new version
|
||||
* Fixed: Choked on new files of the new version which didn't exist
|
||||
in the old version
|
||||
* Clean cachefiles in templates_c just before the upgrade to prevent
|
||||
display-errors
|
||||
|
||||
0.1.2:
|
||||
* Fixed call-by-reference-warning in php 5.3
|
||||
* Added checksum-test prior to unpacking to kind of authenticate
|
||||
|
|
|
@ -22,7 +22,7 @@ class serendipity_event_autoupdate extends serendipity_event {
|
|||
$propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'onli, Ian');
|
||||
$propbag->add('version', '0.5');
|
||||
$propbag->add('version', '0.6');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'php' => '5.1'
|
||||
|
@ -37,6 +37,13 @@ class serendipity_event_autoupdate extends serendipity_event {
|
|||
$title = $this->title;
|
||||
}
|
||||
|
||||
function install() {
|
||||
global $serendipity;
|
||||
|
||||
if (!$serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/*function introspect_config_item($name, &$propbag) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue