Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Section menu strings do not have to have a translation now. If no tra…

…nslation is provided the string from the details.php file will be used
  • Loading branch information...
commit 6e294912b1e7d23a9f1db1e1a1cb5f67166e1d03 1 parent ecfdc37
@jerel jerel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/cms/themes/pyrocms/views/admin/partials/sections.php
View
2  system/cms/themes/pyrocms/views/admin/partials/sections.php
@@ -5,7 +5,7 @@
<?php foreach ($module_details['sections'] as $name => $section): ?>
<?php if(isset($section['name']) && isset($section['uri'])): ?>
<li class="<?php if ($name === $active_section) echo 'current' ?>">
- <?php echo anchor($section['uri'], lang($section['name'])); ?>
+ <?php echo anchor($section['uri'], (lang($section['name']) ? lang($section['name']) : $section['name'])); ?>
<?php if ($name === $active_section): ?>
<?php echo Asset::img('admin/section_arrow.png', ''); ?>
<?php endif; ?>
Please sign in to comment.
Something went wrong with that request. Please try again.