mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-11-04 21:52:14 +00:00
Queue initial watermark precache on plugin activation
This commit is contained in:
1 parent
921f058f2e
commit
db2e547508
1 file changed
+10
-5
+10
-5
@@ -6,19 +6,25 @@ if (!defined('PHPWG_ROOT_PATH'))
|
||||
|
||||
require_once(dirname(__FILE__) . '/include/database.class.php');
|
||||
require_once(dirname(__FILE__) . '/tools/watermark_profiles.inc.php');
|
||||
require_once(dirname(__FILE__) . '/tools/image_cache.inc.php');
|
||||
|
||||
class bratonien_tools_maintain extends PluginMaintain
|
||||
{
|
||||
public function install($plugin_version, &$errors = array())
|
||||
private function prepare()
|
||||
{
|
||||
bratonien_tools_create_tables();
|
||||
bratonien_tools_create_default_watermark_profiles();
|
||||
bratonien_tools_request_watermark_precache();
|
||||
}
|
||||
|
||||
public function install($plugin_version, &$errors = array())
|
||||
{
|
||||
$this->prepare();
|
||||
}
|
||||
|
||||
public function activate($plugin_version, &$errors = array())
|
||||
{
|
||||
bratonien_tools_create_tables();
|
||||
bratonien_tools_create_default_watermark_profiles();
|
||||
$this->prepare();
|
||||
}
|
||||
|
||||
public function deactivate()
|
||||
@@ -27,8 +33,7 @@ class bratonien_tools_maintain extends PluginMaintain
|
||||
|
||||
public function update($old_version, $new_version, &$errors = array())
|
||||
{
|
||||
bratonien_tools_create_tables();
|
||||
bratonien_tools_create_default_watermark_profiles();
|
||||
$this->prepare();
|
||||
}
|
||||
|
||||
public function uninstall()
|
||||
|
||||
Reference in new issue
Block a user