Skip to content

Commit

Permalink
Update OjtPlugin.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thisnugroho authored Apr 15, 2024
1 parent 6ccba22 commit 10dac9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions OjtPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,12 @@ public function getRegisteredModules()

public function getDefaultPluginIcon()
{
$templateMgr = TemplateManager::getManager($this->getRequest());

return $templateMgr->fetch($this->getTemplateResource('defaultIcon.tpl'));
// In some ojs this func trigger error, can't read defaultIcon.tpl
// $templateMgr = TemplateManager::getManager($this->getRequest());
// return $templateMgr->fetch($this->getTemplateResource('defaultIcon.tpl'));
return '<svg class="ojt-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z" />
</svg>';
}

public function createModulesFolder()
Expand Down

0 comments on commit 10dac9c

Please sign in to comment.