@@ -5,7 +5,8 @@ discard block |
||
| 5 | 5 | <?php if (empty($this->patchesArray)): ?> |
| 6 | 6 | <div class="alert alert-info">No patches have been registered yet.</div> |
| 7 | 7 | <?php |
| 8 | -else: |
|
| 8 | +else { |
|
| 9 | + : |
|
| 9 | 10 | |
| 10 | 11 | if ($this->nbAwaiting == 0 && $this->nbError == 0) { |
| 11 | 12 | ?> |
@@ -14,7 +15,9 @@ discard block |
||
| 14 | 15 | } |
| 15 | 16 | ?> |
| 16 | 17 | <form action="runAllPatches" method="post"> |
| 17 | - <input name="name" type="hidden" value="<?php echo plainstring_to_htmlprotected($this->instanceName); ?>"></input> |
|
| 18 | + <input name="name" type="hidden" value="<?php echo plainstring_to_htmlprotected($this->instanceName); |
|
| 19 | +} |
|
| 20 | +?>"></input> |
|
| 18 | 21 | <input name="selfedit" type="hidden" value="<?php echo plainstring_to_htmlprotected($this->selfedit); ?>"></input> |
| 19 | 22 | <?php |
| 20 | 23 | if ($this->nbAwaiting != 0 || $this->nbError != 0) { |
@@ -3,9 +3,12 @@ discard block |
||
| 3 | 3 | <?php if ($this->action === 'reset'): ?> |
| 4 | 4 | <h1>Reset database</h1> |
| 5 | 5 | <div class="alert alert-danger"><strong>Warning!</strong> You are about to reset your complete database!</div> |
| 6 | -<?php else: ?> |
|
| 6 | +<?php else { |
|
| 7 | + : ?> |
|
| 7 | 8 | <h1>Apply patches</h1> |
| 8 | -<?php endif; ?> |
|
| 9 | +<?php endif; |
|
| 10 | +} |
|
| 11 | +?> |
|
| 9 | 12 | |
| 10 | 13 | Please select the patch types you want to apply: |
| 11 | 14 | |
@@ -19,7 +22,10 @@ discard block |
||
| 19 | 22 | |
| 20 | 23 | <?php if ($this->action === 'reset'): ?> |
| 21 | 24 | <button class="btn btn-large btn-danger"><i class="icon-remove icon-white"></i> Yes, I want to reset the database</button> |
| 22 | - <?php else: ?> |
|
| 25 | + <?php else { |
|
| 26 | + : ?> |
|
| 23 | 27 | <button class="btn btn-large btn-success"><i class="icon-arrow-right icon-white"></i> Apply selected patches</button> |
| 24 | - <?php endif; ?> |
|
| 28 | + <?php endif; |
|
| 29 | +} |
|
| 30 | +?> |
|
| 25 | 31 | </form> |
| 26 | 32 | \ No newline at end of file |
@@ -2,16 +2,7 @@ |
||
| 2 | 2 | namespace Mouf\Utils\Patcher\Controllers; |
| 3 | 3 | |
| 4 | 4 | use Mouf\Controllers\AbstractMoufInstanceController; |
| 5 | - |
|
| 6 | -use Mouf\Database\TDBM\Utils\TDBMDaoGenerator; |
|
| 7 | - |
|
| 8 | 5 | use Mouf\Html\Widgets\MessageService\Service\UserMessageInterface; |
| 9 | -use Mouf\MoufManager; |
|
| 10 | - |
|
| 11 | -use Mouf\Mvc\Splash\Controllers\Controller; |
|
| 12 | - |
|
| 13 | -use Mouf\Reflection\MoufReflectionProxy; |
|
| 14 | - |
|
| 15 | 6 | use Mouf\Html\HtmlElement\HtmlBlock; |
| 16 | 7 | use Mouf\InstanceProxy; |
| 17 | 8 | use Mouf\Utils\Patcher\PatchException; |