Skip to content

Commit

Permalink
Bug fix with gallery plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MornieOhtar committed Apr 16, 2013
1 parent 4a11b83 commit 17bfc7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,3 +1,6 @@
l10nTag 1.0.1
===========================================
- Bug fix, when plugin wasn't working with gallery plugin
l10nTag 1.0
===========================================
- Small bugfixes;
Expand Down
13 changes: 2 additions & 11 deletions _build/build.transport.php
Expand Up @@ -24,7 +24,7 @@
/* Load utility classes */
$modx->loadClass('transport.modPackageBuilder', '', false, true);
$builder = new modPackageBuilder($modx);
$builder->createPackage('l10nTag', '1.0', 'pl');
$builder->createPackage('l10nTag', '1.0.1', 'pl');
$builder->registerNamespace('l10nTag', false, true, '{core_path}components/l10nTag/');

/* Objects */
Expand All @@ -35,20 +35,11 @@
$plugin->set('plugincode', file_get_contents($sources['componentCore'].'/elements/plugin.l10ntag.php'));
$modx->log(modX::LOG_LEVEL_INFO,'Plugin added successfully!');

$PluginEvents = array();

$pluginEvent = $modx->newObject('modPluginEvent');
$pluginEvent->set('event', 'OnWebPagePrerender');
$PluginEvents[] = $pluginEvent;
$modx->log(modX::LOG_LEVEL_INFO,'Adding onWebPagePrerender event...');


$pluginEvent = $modx->newObject('modPluginEvent');
$pluginEvent->set('event', 'OnBeforeCacheUpdate');
$PluginEvents[] = $pluginEvent;
$modx->log(modX::LOG_LEVEL_INFO,'Adding onBeforeCacheUpdate event...');

$resultAddEvents = $plugin->addMany($pluginEvents);
$resultAddEvents = $plugin->addMany($pluginEvent);
if(!$resultAddEvents){
$modx->log(modX::LOG_LEVEL_INFO,'Events registered successfully');
} else {
Expand Down

0 comments on commit 17bfc7a

Please sign in to comment.