Added some checks to lang array, adapted the notice board

This commit is contained in:
Llewellyn van der Merwe 2018-01-19 13:52:53 +02:00
parent e6466474b1
commit 467a7aac95
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
5 changed files with 12 additions and 9 deletions

View File

@ -130,7 +130,7 @@ Component Builder is mapped as a component in itself on my local development env
+ *Version*: 2.6.12 + *Version*: 2.6.12
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **180462** + *Line count*: **180465**
+ *Field count*: **1573** + *Field count*: **1573**
+ *File count*: **1160** + *File count*: **1160**
+ *Folder count*: **186** + *Folder count*: **186**

View File

@ -130,7 +130,7 @@ Component Builder is mapped as a component in itself on my local development env
+ *Version*: 2.6.12 + *Version*: 2.6.12
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **180462** + *Line count*: **180465**
+ *Field count*: **1573** + *Field count*: **1573**
+ *File count*: **1160** + *File count*: **1160**
+ *Folder count*: **186** + *Folder count*: **186**

View File

@ -440,10 +440,13 @@ class ComponentbuilderModelLanguage_translations extends JModelList
$headers->id = 'id'; $headers->id = 'id';
$headers->English = 'English'; $headers->English = 'English';
// add the languages // add the languages
if (ComponentbuilderHelper::checkArray($languages))
{
foreach ($languages as $language) foreach ($languages as $language)
{ {
$headers->{$language} = $language; $headers->{$language} = $language;
} }
}
return $headers; return $headers;
} }

View File

@ -91,12 +91,12 @@ JHtml::_('behavior.tooltip');
</div> </div>
<?php echo JHtml::_('bootstrap.endTab'); ?> <?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'vast_development_method', JText::_('Vast Development Method', true)); ?> <?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'notice_board', JText::_('Notice Board', true)); ?>
<div class="row-fluid"> <div class="row-fluid">
<div class="span12"> <div class="span12">
<?php echo JHtml::_('bootstrap.startAccordion', 'vast_development_method_accordian', array('active' => 'vast_development_method_one')); ?> <?php echo JHtml::_('bootstrap.startAccordion', 'notice_board_accordian', array('active' => 'notice_board_one')); ?>
<?php echo JHtml::_('bootstrap.addSlide', 'vast_development_method_accordian', 'Notice Board', 'vast_development_method_one'); ?> <?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'Vast Development Method', 'notice_board_one'); ?>
<?php echo $this->loadTemplate('vast_development_method_notice_board');?> <?php echo $this->loadTemplate('notice_board_vast_development_method');?>
<?php echo JHtml::_('bootstrap.endSlide'); ?> <?php echo JHtml::_('bootstrap.endSlide'); ?>
<?php echo JHtml::_('bootstrap.endAccordion'); ?> <?php echo JHtml::_('bootstrap.endAccordion'); ?>
</div> </div>

View File

@ -13,7 +13,7 @@
@version 2.6.x @version 2.6.x
@created 30th April, 2015 @created 30th April, 2015
@package Component Builder @package Component Builder
@subpackage default_vast_development_method_notice_board.php @subpackage default_notice_board_vast_development_method.php
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com> @author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder> @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
@copyright Copyright (C) 2015. All Rights Reserved @copyright Copyright (C) 2015. All Rights Reserved