Skip to content

Commit

Permalink
Merge branch 'refs/heads/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Jun 11, 2014
2 parents 470fdf6 + 444c894 commit 6f331a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fuel/modules/fuel/helpers/fuel_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,13 @@ function fuel_edit($id, $label = NULL, $module = 'pagevariables', $is_published
{
$CI =& get_instance();
$page = $CI->fuel->pages->active();
$permission = $module;
if (empty($page))
{
$page = $CI->fuel->pages->create();
}
if (!empty($id) AND (!defined('FUELIFY') OR defined('FUELIFY') AND FUELIFY !== FALSE))
{

if (is_object($id) AND is_a($id, 'Data_record') AND isset($id->id))
{
$ref_id = $id->id;
Expand All @@ -472,6 +472,7 @@ function fuel_edit($id, $label = NULL, $module = 'pagevariables', $is_published
if (!empty($mod))
{
$module = $mod->info('module_uri');
$permission = $mod->info('permission');
}
}

Expand Down Expand Up @@ -506,6 +507,7 @@ function fuel_edit($id, $label = NULL, $module = 'pagevariables', $is_published
$marker['id'] = $ref_id;
$marker['label'] = $label;
$marker['module'] = $module;
$marker['permission'] = $permission;
$marker['published'] = $is_published;
$marker['xoffset'] = $xoffset;
$marker['yoffset'] = $yoffset;
Expand Down
2 changes: 1 addition & 1 deletion fuel/modules/fuel/libraries/Fuel_pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ public function render_marker($key)
extract($marker);

// fix for pages permission
$perm = ($module == 'pagevariables') ? 'pages' : $module;
$perm = ($permission == 'pagevariables') ? 'pages' : $permission;

if ($this->fuel->config('admin_enabled') AND
is_fuelified() AND
Expand Down

0 comments on commit 6f331a0

Please sign in to comment.