Skip to content

Commit

Permalink
Updating CodeIgniter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantcholakov committed Jul 6, 2014
1 parent 9e198c1 commit 46fc214
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions platform/core/framework/helpers/url_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ function anchor_popup($uri = '', $title = '', $attributes = FALSE)
return '<a href="'.$site_url.'" onclick="window.open(\''.$site_url."', '_blank'); return false;\">".$title.'</a>';
}

$window_name = '';

if ( ! is_array($attributes))
{
$attributes = array($attributes);
Expand All @@ -210,6 +208,10 @@ function anchor_popup($uri = '', $title = '', $attributes = FALSE)
$window_name = $attributes['window_name'];
unset($attributes['window_name']);
}
else
{
$window_name = '_blank';
}

foreach (array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0') as $key => $val)
{
Expand Down

0 comments on commit 46fc214

Please sign in to comment.