"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/action/menu.php" between
wacko.6.1.18.zip and wacko.6.1.19.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

menu.php  (wacko.6.1.18):menu.php  (wacko.6.1.19)
<?php <?php
if (!defined('IN_WACKO')) if (!defined('IN_WACKO'))
{ {
exit; exit;
} }
// {{menu system=[0|1] redirect=''}} // {{menu system=[0|1]}}
$menu_sorting = function ($a, $b) $menu_sorting = function ($a, $b)
{ {
if ($a['menu_position'] == $b['menu_position']) if ($a['menu_position'] == $b['menu_position'])
{ {
return 0; return 0;
} }
return ($a['menu_position'] < $b['menu_position']) return ($a['menu_position'] < $b['menu_position'])
? -1 ? -1
skipping to change at line 54 skipping to change at line 54
// get default menu items // get default menu items
if ($this->is_admin() && $system) if ($this->is_admin() && $system)
{ {
$_user_id = $this->db->system_user_id; $_user_id = $this->db->system_user_id;
$default_menu = true; $default_menu = true;
$menu_lang = ($this->db->multilanguage? @$_REQUEST['menu_lang'] : ''); $menu_lang = ($this->db->multilanguage? @$_REQUEST['menu_lang'] : '');
if (!$this->known_language($menu_lang)) if (!$this->known_language($menu_lang))
{ {
// language doesn't have any language files so use the admin set language instead
$menu_lang = $this->db->language; $menu_lang = $this->db->language;
} }
#$this->set_menu(MENU_DEFAULT); #$this->set_menu(MENU_DEFAULT);
} }
else else
{ {
$user = $this->get_user(); $user = $this->get_user();
$_user_id = $user['user_id']; $_user_id = $user['user_id'];
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)