Skip to content

Commit

Permalink
Fix showing log by PluginRegistry on Modules Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi committed Sep 5, 2023
1 parent 067cf25 commit cfdf948
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 3.0.0.4 : 05 Sep 2023
- Fix showing log by PluginRegistry on Modules Plugin

### 3.0.0.0 : 17 Juni 2023

- Support for OJS 3.4.x.x
Expand Down
3 changes: 3 additions & 0 deletions OjtControlPanelPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ public function registerModules(): void

$versionFile = $this->getModulesPath($moduleFolder . DIRECTORY_SEPARATOR . "version.xml");
$version = VersionCheck::getValidPluginVersionInfo($versionFile);

$versionDao = DAORegistry::getDAO('VersionDAO');
$versionDao->disableVersion($version->getData('productType'), $version->getData('product'));

$categoryPlugin = explode('.', $version->getData('productType'))[1];
$categoryDir = $this->getModulesPath();
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<version>
<application>ojtControlPanel</application>
<type>plugins.generic</type>
<release>3.0.0.3</release>
<date>2023-05-17</date>
<release>3.0.0.4</release>
<date>2023-09-05</date>
<lazy-load>0</lazy-load>
<class>OjtControlPanelPlugin</class>
</version>

0 comments on commit cfdf948

Please sign in to comment.