r97395 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97394‎ | r97395 | r97396 >
Date:22:00, 17 September 2011
Author:reedy
Status:ok
Tags:
Comment:
More indenting/tidying up
Modified paths:
  • /trunk/wikimania/wmreg/includes/SqlConnect-mysql.php (modified) (history)
  • /trunk/wikimania/wmreg/includes/prices.php (modified) (history)
  • /trunk/wikimania/wmreg/index.php (modified) (history)

Diff [purge]

Index: trunk/wikimania/wmreg/includes/SqlConnect-mysql.php
@@ -58,7 +58,7 @@
5959 {
6060 return mysql_fetch_assoc( $query_result );
6161 }
62 - function fetchRow()
 62+ function fetchRow( $query_result )
6363 {
6464 return mysql_fetch_row( $query_result );
6565 }
Index: trunk/wikimania/wmreg/includes/prices.php
@@ -78,12 +78,9 @@
7979 $attendee_type = 'regular_attendee';
8080 $period = 'very_early_bird';
8181 $currency = 'USD';
82 - $attendance_cost = 0;
83 - $accommodation_cost = 0;
8482 $vat_cost = 0;
8583 $n_main_days = 0;
8684 $people_in_room = 0;
87 - $hotel = '';
8885
8986 if ( in_array( '3', $register_data['join_date'] ) )
9087 $n_main_days++;
Index: trunk/wikimania/wmreg/index.php
@@ -1492,13 +1492,13 @@
14931493 $night_selected = $register_data['night1'] + $register_data['night2'] + $register_data['night3'] + $register_data['night4'];
14941494
14951495 if ( $register_data['hotelname'] == 'metropol' )
1496 - { $register_data['cost_total'] += $accommodation_cost_metropol * $night_selected; }
1497 - elseif ( $register_data['hotelname'] == 'delta' )
1498 - { $register_data['cost_total'] += $accommodation_cost_delta * $night_selected; }
1499 - elseif ( $register_data['hotelname'] == 'dorms' )
1500 - { $register_data['cost_total'] += $accommodation_cost_dorms * $night_selected; }
1501 - else
1502 - { $register_data['cost_total'] += 0; }
 1496+ { $register_data['cost_total'] += $accommodation_cost_metropol * $night_selected; }
 1497+ elseif ( $register_data['hotelname'] == 'delta' )
 1498+ { $register_data['cost_total'] += $accommodation_cost_delta * $night_selected; }
 1499+ elseif ( $register_data['hotelname'] == 'dorms' )
 1500+ { $register_data['cost_total'] += $accommodation_cost_dorms * $night_selected; }
 1501+ else
 1502+ { $register_data['cost_total'] += 0; }
15031503
15041504 }
15051505 elseif ( $MY_REQUEST['coupon_id'] == $coupon_volunteer )
@@ -1509,13 +1509,13 @@
15101510 $night_selected = $register_data['night1'] + $register_data['night2'] + $register_data['night3'] + $register_data['night4'];
15111511
15121512 if ( $register_data['hotelname'] == 'metropol' )
1513 - { $register_data['cost_total'] += $accommodation_cost_metropol * $night_selected; }
1514 - elseif ( $register_data['hotelname'] == 'delta' )
1515 - { $register_data['cost_total'] += $accommodation_cost_delta * $night_selected; }
1516 - elseif ( $register_data['hotelname'] == 'dorms' )
1517 - { $register_data['cost_total'] += $accommodation_cost_dorms * $night_selected; }
1518 - else
1519 - { $register_data['cost_total'] += 0; }
 1513+ { $register_data['cost_total'] += $accommodation_cost_metropol * $night_selected; }
 1514+ elseif ( $register_data['hotelname'] == 'delta' )
 1515+ { $register_data['cost_total'] += $accommodation_cost_delta * $night_selected; }
 1516+ elseif ( $register_data['hotelname'] == 'dorms' )
 1517+ { $register_data['cost_total'] += $accommodation_cost_dorms * $night_selected; }
 1518+ else
 1519+ { $register_data['cost_total'] += 0; }
15201520 }
15211521 else
15221522 {

Status & tagging log