Fixed mysql_* calls
Updated skin Fixed minor bugs in shipyard pages display Fixed various bugs in legacy fleet pages source code. Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
be8c6a6629
commit
cfeb6aca6d
68 changed files with 1561 additions and 1451 deletions
|
|
@ -153,7 +153,7 @@ if (isset($_POST) && !empty($_POST)) {
|
|||
planet = '" . $irak['planet_angreifer'] . "' AND
|
||||
planet_type = '1'", 'planets', true);
|
||||
|
||||
if (mysql_num_rows($planet_start) == 1) {
|
||||
if ($planet_start->rowCount() == 1) {
|
||||
$planet = mysql_fetch_array($planet_start);
|
||||
}
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ if (isset($_POST) && !empty($_POST)) {
|
|||
$newMessages = new Legacies_Core_View();
|
||||
$newMessages->setTemplate('empire/overview/messages.phtml');
|
||||
$newMessages['count'] = (int) $count;
|
||||
|
||||
|
||||
/** Gestion des officiers
|
||||
* Update miner and raider level
|
||||
*
|
||||
|
|
@ -220,7 +220,7 @@ if (isset($_POST) && !empty($_POST)) {
|
|||
$user->setData('rpg_points', $user->getData('rpg_points') +1);
|
||||
$user->save();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Page display
|
||||
* Refactoring needed
|
||||
|
|
|
|||
Loading…
Reference in a new issue