fixing messages in VM

This commit is contained in:
Benjamin Sonntag 2013-10-18 14:14:37 +00:00
parent 763507aa65
commit c7ba78b36c
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ include_once("head.php");
<p class="alert alert-info"><?php __("You can start a virtual machine."); ?></p> <p class="alert alert-info"><?php __("You can start a virtual machine."); ?></p>
<form method="post" action="vm.php"> <form method="post" action="vm.php">
<input type="hidden" name="action" value="start" /> <input type="hidden" name="action" value="start" />
<input type="submit" class="inb" name="go" value="<?php __("Click here to start a virtual machine."); ?>" /> <input type="submit" class="inb ok" name="go" value="<?php __("Click here to start a virtual machine."); ?>" />
</form> </form>
<?php <?php
} else { } else {
@ -86,7 +86,7 @@ include_once("head.php");
<p class="alert alert-info"><?php __("You can stop your virtual machine."); ?></p> <p class="alert alert-info"><?php __("You can stop your virtual machine."); ?></p>
<form method="post" action="vm.php"> <form method="post" action="vm.php">
<input type="hidden" name="action" value="stop" /> <input type="hidden" name="action" value="stop" />
<input type="submit" class="inb" name="go" value="<?php __("Click here to stop your running virtual machine."); ?>" /> <input type="submit" class="inb cancel" name="go" value="<?php __("Click here to stop your running virtual machine."); ?>" />
</form> </form>
<?php <?php
} // empty infos ?> } // empty infos ?>

View File

@ -133,6 +133,7 @@ class m_lxc implements vm {
$err->raise('lxc', _('VM already started')); $err->raise('lxc', _('VM already started'));
return FALSE; return FALSE;
} }
unset($this->error);
$login = $login ? $login : $mem->user['login']; $login = $login ? $login : $mem->user['login'];
$pass = $pass ? $pass : $mem->user['pass']; $pass = $pass ? $pass : $mem->user['pass'];