From abdb6993d76bfdce81dae12acbd054f41c7289a0 Mon Sep 17 00:00:00 2001 From: "NeatElves@gmail.com" Date: Sun, 1 Mar 2015 19:50:37 +0000 Subject: [PATCH] =?utf8?q?=D0=A2=D1=80=D0=B5=D0=B1=D0=BE=D0=B2=D0=B0=D0=BD?= =?utf8?q?=D0=B8=D0=B5:=20PHP=20=3D>=205.3,=20=D1=87=D0=B0=D1=81=D1=82?= =?utf8?q?=D1=8C=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://cswowd-fork.googlecode.com/svn/trunk@197 e451fad0-63ce-11de-bed1-e3a98b22654c --- include/achievements.php | 10 +++++----- module/online/online.php | 2 +- module/search/search_area.php | 2 +- module/search/search_faction.php | 2 +- module/search/search_go.php | 2 +- module/search/search_item.php | 2 +- module/search/search_itemset.php | 2 +- module/search/search_npc.php | 2 +- module/search/search_player.php | 2 +- module/search/search_quest.php | 2 +- module/search/search_spell.php | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/achievements.php b/include/achievements.php index 310b2bc..efd59e5 100644 --- a/include/achievements.php +++ b/include/achievements.php @@ -221,7 +221,7 @@ function renderAchievement($id, &$a, $guid) echo '
'; if ($a['flags']&CUSTOM_ACHIEVEMENT_SHOW) { - getAchievementValue(&$a, &$value, &$maxvalue); + getAchievementValue($a, $value, $maxvalue); if ($a['flags']&ACHIEVEMENT_FLAG_BAR) echo '
'.renderProgress($value, $maxvalue).'
'; else if ($a['flags']&ACHIEVEMENT_FLAG_MAX_USED) @@ -282,10 +282,10 @@ function renderPlayerAchievementStats($category, $faction, $guid) foreach ($baseCat as $id=>$cat) { $count = array(0,0,0,0); - getComplCount($completed, $cat['id'], $faction, &$count); + getComplCount($completed, $cat['id'], $faction, $count); $subCat = $wDB->select("SELECT `id`, `name` FROM `wowd_achievement_category` WHERE `parent` = ?d", $cat['id']); foreach ($subCat as $sub) - getComplCount($completed, $sub['id'], $faction, &$count); + getComplCount($completed, $sub['id'], $faction, $count); $baseCat[$id]['count'] = $count; if ($count[2]) foreach($total as $i=>$t) @@ -357,7 +357,7 @@ function renderAchievementCategoryList($cat, $faction, $guid) echo '
'.$compl.' / '.$total.'
'; } foreach ($achievements as $id=>$arc) - renderAchievement($id, &$achievements[$id], $guid); + renderAchievement($id, $achievements[$id], $guid); } else { @@ -369,7 +369,7 @@ function renderAchievementCategoryList($cat, $faction, $guid) { echo '
'; // Render requirements - echo '
'.getAchievementValue($a, &$value, &$maxvalue).'
'; + echo '
'.getAchievementValue($a, $value, $maxvalue).'
'; echo $a['name']; /* echo ' ('.$id.') - 0x'.dechex($a['flags']); diff --git a/module/online/online.php b/module/online/online.php index 622ccb4..346229f 100644 --- a/module/online/online.php +++ b/module/online/online.php @@ -56,7 +56,7 @@ else $baseLink = '?online'; $show_fields= array('PL_REPORT_LEVEL', 'PL_REPORT_FACTION', 'PL_REPORT_NAME', 'PL_REPORT_RACE', 'PL_REPORT_CLASS', 'PL_REPORT_POS'); - $list =& new PlayerReportGenerator(); + $list = new PlayerReportGenerator(); $list->disableMark(); $list->Init($show_fields, $baseLink, 'onlineLIST', $config['online_limit'], 'name'); $list->online(); diff --git a/module/search/search_area.php b/module/search/search_area.php index ec59965..c8c1033 100644 --- a/module/search/search_area.php +++ b/module/search/search_area.php @@ -40,7 +40,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter) { - $area_search =& new ZoneReportGenerator(); + $area_search = new ZoneReportGenerator(); if (!$allmode) $area_search->disableMark(); $area_search->Init($show_fields, $FindRefrence, 'searchArea', $config['fade_limit'], 'name'); diff --git a/module/search/search_faction.php b/module/search/search_faction.php index 8dee0ae..1b8b644 100644 --- a/module/search/search_faction.php +++ b/module/search/search_faction.php @@ -40,7 +40,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter) { - $faction_search =& new FactionReportGenerator(); + $faction_search = new FactionReportGenerator(); if (!$allmode) $faction_search->disableMark(); $faction_search->Init($show_fields, $FindRefrence, 'searchFaction', $config['fade_limit'], 'name'); diff --git a/module/search/search_go.php b/module/search/search_go.php index b33bd44..a7ddc88 100644 --- a/module/search/search_go.php +++ b/module/search/search_go.php @@ -80,7 +80,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter) { - $go_search =& new GameobjectReportGenerator(); + $go_search = new GameobjectReportGenerator(); if (!$allmode) $go_search->disableMark(); //============================================================================== diff --git a/module/search/search_item.php b/module/search/search_item.php index 8442b88..201be59 100644 --- a/module/search/search_item.php +++ b/module/search/search_item.php @@ -155,7 +155,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter!='') { - $isearch =& new ItemReportGenerator; + $isearch = new ItemReportGenerator; if (!$allmode) $isearch->disableMark(); diff --git a/module/search/search_itemset.php b/module/search/search_itemset.php index ed0da7f..246dbe4 100644 --- a/module/search/search_itemset.php +++ b/module/search/search_itemset.php @@ -42,7 +42,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter) { - $set_search =& new ItemSetReportGenerator(); + $set_search = new ItemSetReportGenerator(); if (!$allmode) $set_search->disableMark(); $set_search->Init($show_fields, $FindRefrence, 'searchSet', $config['fade_limit'], 'name'); diff --git a/module/search/search_npc.php b/module/search/search_npc.php index 8e9f8ab..d53b0fd 100644 --- a/module/search/search_npc.php +++ b/module/search/search_npc.php @@ -87,7 +87,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter!="") { - $npc_search =& new CreatureReportGenerator(); + $npc_search = new CreatureReportGenerator(); if (!$allmode) $npc_search->disableMark(); //============================================================================== diff --git a/module/search/search_player.php b/module/search/search_player.php index d12b0ea..3f45f0b 100644 --- a/module/search/search_player.php +++ b/module/search/search_player.php @@ -47,7 +47,7 @@ if ($filter) { $show_fields= array('PL_REPORT_LEVEL', 'PL_REPORT_RACE', 'PL_REPORT_CLASS', 'PL_REPORT_NAME', 'PL_REPORT_FACTION'); - $p_search =& new PlayerReportGenerator(); + $p_search = new PlayerReportGenerator(); if (!$allmode) $p_search->disableMark(); $p_search->Init($show_fields, $FindRefrence, 'searchPlayer', $config['fade_limit'], 'name'); diff --git a/module/search/search_quest.php b/module/search/search_quest.php index 15b2fb6..8c0e2ae 100644 --- a/module/search/search_quest.php +++ b/module/search/search_quest.php @@ -135,7 +135,7 @@ if ($allmode==0 and $ajaxmode==0) // Ищем если имеется хоть чтото в запросе if ($filter!="") { - $quest_search =& new QuestReportGenerator(); + $quest_search = new QuestReportGenerator(); if (!$allmode) $quest_search->disableMark(); //============================================================================== diff --git a/module/search/search_spell.php b/module/search/search_spell.php index 9f91e69..a0d70b1 100644 --- a/module/search/search_spell.php +++ b/module/search/search_spell.php @@ -93,7 +93,7 @@ if ($allmode==0 and $ajaxmode==0) if ($filter) { - $spell_search =& new SpellReportGenerator; + $spell_search = new SpellReportGenerator; if (!$allmode) $spell_search->disableMark(); $spell_search->Init($show_fields, $FindRefrence, 'searchSpell', $config['fade_limit'], 'name'); -- 2.11.4.GIT