mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-30 19:50:36 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user