Skip to content

Commit

Permalink
more fixes editora
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bohollo committed Nov 19, 2019
1 parent e5b374c commit 5e711f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/admin/accions/admin_default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class AdminDefault extends BaseController
public function render()
{
$viewData = [
'arrayLangs' => config('editora-admin.languages')
'arrayLangs' => config('editora-admin.languages'),
'title' => EDITORA_NAME
];

return response()->view('editora::pages.login', $viewData);
Expand Down
3 changes: 3 additions & 0 deletions src/admin/accions/admin_get_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ public function render()

$title = EDITORA_NAME;
$instances = $this->instances->instanceList($params);
$count = $this->instances->instanceList_count($params);

$menu = $this->loadMenu($this->instances, $params);

$viewData = array_merge($menu, [
'p_mode' => $p_mode,
'title' => $title,
'instances' => $instances,
'count' => $count,
]);

return response()->view('editora::pages.home', $viewData);
Expand Down
4 changes: 3 additions & 1 deletion src/admin/accions/admin_list_instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ public function render()

$count = 0;
$page = 1;
$p_mode = '';

$menu = [];

if (Session::get('rol_id')==1 || $security->getAccess('browseable', $params)) {
$editora = new editoraModel();

$params = get_params_info();
$params['p_mode'] = 'V';
$params['p_mode'] = $p_mode = 'V';
if ($params['param3']!="") {
$page = $params['param3'];
}
Expand All @@ -48,6 +49,7 @@ public function render()
}
$viewData = array_merge($menu, [
'title' => EDITORA_NAME,
'p_mode' => $p_mode,
'instances' => $instances,
'class' => $class_info,
'count' => $count,
Expand Down

0 comments on commit 5e711f4

Please sign in to comment.