Updates for the latest version of Kohana 2.4:

1) Controller::$input is gone -- use Input::instance() now
2) Handle new 'database.<default>.connection.params' parameter
3) Handle new 'cache.<default>.prefix' parameter
This commit is contained in:
Bharat Mediratta
2009-12-21 21:27:43 -08:00
parent 9285c8c66c
commit 8b9a02084a
20 changed files with 52 additions and 33 deletions
@@ -58,7 +58,7 @@ class Admin_Server_Add_Controller extends Admin_Controller {
public function remove_path() {
access::verify_csrf();
$path = $this->input->get("path");
$path = Input::instance()->get("path");
$paths = unserialize(module::get_var("server_add", "authorized_paths"));
if (isset($paths[$path])) {
unset($paths[$path]);
@@ -71,7 +71,7 @@ class Admin_Server_Add_Controller extends Admin_Controller {
public function autocomplete() {
$directories = array();
$path_prefix = $this->input->get("q");
$path_prefix = Input::instance()->get("q");
foreach (glob("{$path_prefix}*") as $file) {
if (is_dir($file) && !is_link($file)) {
$directories[] = $file;