Skip to content

Commit

Permalink
better code
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Jul 4, 2019
1 parent 68cc7e9 commit 1344a36
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions administrator/components/com_redirect/Model/LinksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ public function batchProcess($batch_urls)
$created = Factory::getDate()->toSql();

$columns = [
$db->quoteName('old_url'),
$db->quoteName('new_url'),
$db->quoteName('referer'),
$db->quoteName('comment'),
$db->quoteName('hits'),
$db->quoteName('published'),
$db->quoteName('created_date')
'old_url',
'new_url',
'referer',
'comment',
'hits',
'published',
'created_date'
];

foreach ($batch_urls as $i => $batch_url)
Expand Down Expand Up @@ -253,7 +253,7 @@ public function batchProcess($batch_urls)

$query->clear()
->insert($db->quoteName('#__redirect_links'), false)
->columns($columns)
->columns($db->quoteName($columns))
->values(implode(', ', $values))
->bind(':oldurl' . $i, $old_url)
->bind(':newurl' . $i, $new_url)
Expand Down

0 comments on commit 1344a36

Please sign in to comment.