diff --git a/e107_admin/emoticon.php b/e107_admin/emoticon.php index e43bc8e4e..264848733 100644 --- a/e107_admin/emoticon.php +++ b/e107_admin/emoticon.php @@ -54,7 +54,7 @@ if (isset($_POST['active'])) } -e107::getRender()->tablerender($caption, $mes->render() . $text); +//e107::getRender()->tablerender($caption, $mes->render() . $text); /* get packs */ require_once(e_HANDLER."file_class.php"); @@ -102,7 +102,7 @@ foreach($filtered as $key => $value) } } -$ns->tablerender($caption, $mes->render() . $text); +// $ns->tablerender($caption, $mes->render() . $text); $check = TRUE; diff --git a/e107_admin/theme.php b/e107_admin/theme.php index 876ad3283..b1273b5fe 100644 --- a/e107_admin/theme.php +++ b/e107_admin/theme.php @@ -721,7 +721,7 @@ class theme_admin_tree_model extends e_tree_model * Load data from theme meta file. * @param bool $force */ - function load() + function load($force=false) { $themeList = e107::getTheme()->getList(); $newArray = array(); @@ -786,7 +786,7 @@ class theme_admin_online_tree_model extends e_tree_model * Load data from theme meta file. * @param bool $force */ - function load() + function load($force=false) { $themeList = e107::getTheme()->getList(); diff --git a/e107_handlers/core_functions.php b/e107_handlers/core_functions.php index 84db8b4ea..c771c2391 100644 --- a/e107_handlers/core_functions.php +++ b/e107_handlers/core_functions.php @@ -301,10 +301,12 @@ if (!function_exists('asortbyindex')) } asort ($sort_values); reset ($sort_values); - while (list ($arr_key, $arr_val) = each ($sort_values)) + + foreach($sort_values as $arr_key =>$arr_val) { $sorted_arr[] = $array[$arr_key]; } + return $sorted_arr; } } diff --git a/e107_handlers/e_marketplace.php b/e107_handlers/e_marketplace.php index cfbddecc2..881d036f7 100644 --- a/e107_handlers/e_marketplace.php +++ b/e107_handlers/e_marketplace.php @@ -441,7 +441,7 @@ abstract class e_marketplace_adapter_abstract $remotefile = $this->downloadUrl."?auth=".$this->getAuthKey()."&".$qry; $localfile = md5($remotefile.time()).".zip"; - $mes->addSuccess(TPVLAN_81); + $mes->addSuccess(LAN_DOWNLOADING."..."); // FIXME call the service, check status first, then download (if status OK), else retireve the error break and show it @@ -479,7 +479,8 @@ abstract class e_marketplace_adapter_abstract if($fl->unzipArchive($localfile,$type, true)) { - $mes->addSuccess(TPVLAN_82); + $lan = defset('LAN_DOWNLOAD_COMPLETE', 'Download Complete!'); + $mes->addSuccess($lan); return true; } else diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index f7c57dd22..a6f22291b 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -5521,7 +5521,7 @@ var_dump($select_options);*/ break; case 'method': // Custom Function - $method = $attributes['field']; // prevents table alias in method names. ie. u.my_method. + $method = varset($attributes['field']); // prevents table alias in method names. ie. u.my_method. $_value = $value; if(!empty($attributes['data']) && $attributes['data'] == 'array') // FIXME @SecretR - please move this to where it should be. diff --git a/e107_handlers/menumanager_class.php b/e107_handlers/menumanager_class.php index 1f697db89..27dd1725c 100644 --- a/e107_handlers/menumanager_class.php +++ b/e107_handlers/menumanager_class.php @@ -577,7 +577,7 @@ class e_menuManager { $menu_perm['mainadmin'] = e_UC_MAINADMIN; $menu_perm['admin'] = e_UC_ADMIN; $menu_perm['nobody'] = e_UC_NOBODY; - $link_class = ($menu_perm[$link_class]) ? $menu_perm[$link_class] : e_UC_PUBLIC; + $link_class = isset($menu_perm[$link_class]) ? $menu_perm[$link_class] : e_UC_PUBLIC; return $link_class; } @@ -926,11 +926,13 @@ class e_menuManager { $areaID = $menus['@attributes']['id']; foreach($menus['menu'] as $k=>$v) { + $perm = isset($v['@attributes']['perm']) ? $v['@attributes']['perm'] : null; + $menuArea[] = array( 'menu_location' => $areaID, 'menu_order' => $k, 'menu_name' => $v['@attributes']['name']."_menu", - 'menu_class' => $this->menuPresetPerms($v['@attributes']['perm']) + 'menu_class' => $this->menuPresetPerms($perm) ); } } diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 2b94d5751..65eb1574d 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -613,7 +613,7 @@ class e_theme public static function parse_theme_php($path) { - $CUSTOMPAGES = ""; + $CUSTOMPAGES = null; $tp = e107::getParser(); // could be used by a theme file. $sql = e107::getDb(); // could be used by a theme file. @@ -2038,7 +2038,7 @@ class themeHandler } $tdClass = !empty($val['writeParms']['post']) ? 'form-inline' : ''; - $text .= "