diff options
Diffstat (limited to '')
| -rw-r--r-- | app/class/framework.class.php | 8 | ||||
| -rw-r--r-- | app/view/sysconf/default.view.php | 3 | 
2 files changed, 10 insertions, 1 deletions
| diff --git a/app/class/framework.class.php b/app/class/framework.class.php index 11902d0..151ca8e 100644 --- a/app/class/framework.class.php +++ b/app/class/framework.class.php @@ -27,6 +27,14 @@ abstract class Framework      }      /* +     * Get the absolute path to the current page +     */ +    function ap() +    { +        return $this->ar() . $_REQUEST['path']; +    } + +    /*       * Redirect to the given URL and die       */      function redirectTo($url) diff --git a/app/view/sysconf/default.view.php b/app/view/sysconf/default.view.php index f6b5b23..b6b85ac 100644 --- a/app/view/sysconf/default.view.php +++ b/app/view/sysconf/default.view.php @@ -46,7 +46,8 @@                      <div class="col-md-8">                          <div class="panel panel-default">                              <div class="panel-body"> -                                <form method="post" action="<?=$mod->ar()?>/sysconf/save"> +                                <form method="post" action="<?=$mod->ap()?>"> +                                    <input type="hidden" name="input[action]" value="save" />                                      <legend>Database Connection</legend>                                      <div class="form-group">                                          <label for="inputDBEngine">Engine</label> | 
