Skip to content

Commit

Permalink
Use registerPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Mar 5, 2019
1 parent 72099d7 commit d14665c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AllowedUploadsPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function manage($args, $request) {

AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON, LOCALE_COMPONENT_PKP_MANAGER);
$templateMgr = TemplateManager::getManager($request);
$templateMgr->register_function('plugin_url', array($this, 'smartyPluginUrl'));
$templateMgr->registerPlugin('function', 'plugin_url', array($this, 'smartyPluginUrl'));

$this->import('AllowedUploadsSettingsForm');
$form = new AllowedUploadsSettingsForm($this, $context->getId());
Expand Down

0 comments on commit d14665c

Please sign in to comment.