From 08dc976431b632e89a72cdf8edc4d7aee6479988 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 12 Jan 2011 15:52:27 +0100 Subject: delete_id(): don't get the password as a argument Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 2 +- system/application/models/file_mod.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index 1d32bd07a..adde14927 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -92,7 +92,7 @@ class File extends Controller { $data["title"] = "Delete"; $data["id"] = $id; if ($password != "NULL") { - if ($this->file_mod->delete_id($id, $password)) { + if ($this->file_mod->delete_id($id)) { if ($this->var->cli_client) { echo $id." deleted\n"; die(); diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 19a607334..30b170e3e 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -297,7 +297,7 @@ class File_mod extends Model { } } - function delete_id($id, $password) + function delete_id($id) { $filedata = $this->get_filedata($id); $password = $this->get_password(); -- cgit v1.2.3-24-g4f1b