|
@@ 172-177 (lines=6) @@
|
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
// I wait for the game to be saved to obtain its ID. |
| 172 |
|
if (! empty($data['uploadStylesheet']['tmp_name'])) { |
| 173 |
|
ErrorHandler::start(); |
| 174 |
|
move_uploaded_file($data['uploadStylesheet']['tmp_name'], $path . 'stylesheet_' . $game->getId() . '.css'); |
| 175 |
|
$game->setStylesheet($media_url . 'stylesheet_' . $game->getId() . '.css'); |
| 176 |
|
ErrorHandler::stop(true); |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
if (! empty($data['uploadMainImage']['tmp_name'])) { |
| 180 |
|
ErrorHandler::start(); |
|
@@ 428-433 (lines=6) @@
|
| 425 |
|
ErrorHandler::stop(true); |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
if (! empty($data['uploadStylesheet']['tmp_name'])) { |
| 429 |
|
ErrorHandler::start(); |
| 430 |
|
move_uploaded_file($data['uploadStylesheet']['tmp_name'], $path . 'stylesheet_' . $game->getId() . '.css'); |
| 431 |
|
$game->setStylesheet($media_url . 'stylesheet_' . $game->getId() . '.css'); |
| 432 |
|
ErrorHandler::stop(true); |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
if (! empty($data['uploadFbShareImage']['tmp_name'])) { |
| 436 |
|
ErrorHandler::start(); |