Skip to content

Commit

Permalink
Include class name in version descriptor; BC out-of-namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jul 27, 2023
1 parent 674449c commit ddb529d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PluginTemplatePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,8 @@ public function addPublicationStatement($hookName, $params)
return false;
}
}

// For backwards compatibility -- expect this to be removed approx. OJS/OMP/OPS 3.6
if (!PKP_STRICT_MODE) {
class_alias('\APP\plugins\generic\pluginTemplate\PluginTemplatePlugin', '\PluginTemplatePlugin');
}
1 change: 1 addition & 0 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
<type>plugins.generic</type>
<release>1.0.0.0</release>
<date>2023-05-15</date>
<class>PluginTemplatePlugin</class>
</version>

0 comments on commit ddb529d

Please sign in to comment.