Skip to content
Permalink
Browse files

Merge branch 'hotfix/farm-php-fatal-and-warnings'

  • Loading branch information...
LotarProject committed Jul 10, 2019
2 parents 9688da8 + 869d9a2 commit c2bf75d15b12091e03be583a2280724baf4a53b0
Showing with 17 additions and 6 deletions.
  1. +13 −4 Template.php
  2. +4 −2 tpl/page-tools.php
@@ -2257,11 +2257,20 @@ public function normalizeContent($content)
$plugin_name = $matches[1];
$extension = plugin_load('helper', 'extension_extension');
$extension->setExtension($plugin_name);
if ($extension = plugin_load('helper', 'extension_extension')) {
foreach ($elm->find('legend') as $legend) {
$legend->innertext = '<i class="mdi mdi-puzzle text-success"></i> '. $legend->innertext .' <br/><h6>'. $extension->getDescription() .' <a class="urlextern" href="'. $extension->getURL() .'" target="_blank">Docs</a></h6>';
if ($extension->setExtension($plugin_name)) {
foreach ($elm->find('legend') as $legend) {
$legend->innertext = '<i class="mdi mdi-puzzle text-success"></i> '. $legend->innertext .' <br/><h6>'. $extension->getDescription() .' <a class="urlextern" href="'. $extension->getURL() .'" target="_blank">Docs</a></h6>';
}
}
} else {
foreach ($elm->find('legend') as $legend) {
$legend->innertext = '<i class="mdi mdi-puzzle text-success"></i> '. $legend->innertext;
}
}
}
@@ -23,8 +23,10 @@
$page_menu = $TEMPLATE->getToolMenu('page');
foreach ($page_menu['menu'] as $type => $item) {
echo $item['html'];
if (isset($page_menu['menu'])) {
foreach ($page_menu['menu'] as $type => $item) {
echo $item['html'];
}
}
?>

0 comments on commit c2bf75d

Please sign in to comment.
You can’t perform that action at this time.