Skip to content

Commit

Permalink
using tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFrench committed Aug 29, 2015
1 parent 04a9d7b commit 133c9aa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
],
"require": {
"php": ">=5.4.0",
"dioscouri/f3-lib": "dev-master",
"dioscouri/f3-admin": "dev-master"
"dioscouri/f3-lib": ">=v0.8",
"dioscouri/f3-admin": ">=v0.8"
},
"autoload": {
"psr-0": {
Expand Down
2 changes: 1 addition & 1 deletion src/Blog/Admin/Views/categories/checkboxes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!empty($categories)) { ?>
<div class="max-height-200 list-group-item">

<?php $current = \Joomla\Utilities\ArrayHelper::getColumn( (array) $flash->old('categories'), 'id' ); ?>
<?php $current = \DscArrayHelper::getColumn( (array) $flash->old('categories'), 'id' ); ?>
<?php foreach ($categories as $one) { ?>
<div class="checkbox">
<label>
Expand Down
2 changes: 1 addition & 1 deletion src/Blog/Admin/Views/posts/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<label>Author:</label> <a href="./admin/user/edit/<?php echo $item->{'author.id'}?>" title="<?php echo $item->{'author.name'}; ?>"><?php echo $item->{'author.name'}; ?></a>
</div>
<div>
<?php $categories = \Joomla\Utilities\ArrayHelper::getColumn( (array) $item->categories, 'title' ); ?>
<?php $categories = \DscArrayHelper::getColumn( (array) $item->categories, 'title' ); ?>
<label>Categories:</label>
<span class='label label-warning'><?php echo implode("</span> <span class='label label-warning'>", (array) $categories ); ?></span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Blog/Models/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function getRelatedPosts($limit = 12)
$categories = array();
if (!empty($this->{'categories'}))
{
$categories = \Joomla\Utilities\ArrayHelper::getColumn((array) $this->{'categories'}, 'id');
$categories = \DscArrayHelper::getColumn((array) $this->{'categories'}, 'id');
}

if (!empty($categories))
Expand Down
2 changes: 1 addition & 1 deletion src/Blog/Modules/Categories/Views/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<?php
} else {
$selected_categories = \Joomla\Utilities\ArrayHelper::getColumn( $selected_categories, 'id' );
$selected_categories = \DscArrayHelper::getColumn( $selected_categories, 'id' );

$keys = array_keys( $tree->nodes );
$c_n = count( $tree->nodes );
Expand Down

0 comments on commit 133c9aa

Please sign in to comment.