From 2ad12bd52fcf35dc327ffe96ebf4acf14b63a8e5 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 8 Apr 2008 04:21:18 +0200 Subject: FS#1361 - fix missing error message (also remove a couple of extraneous slashes) darcs-hash:20080408022118-f07c6-c04712bd424d1bf8ff8db3fee8514bf0a145311e.gz --- lib/plugins/plugin/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/plugins/plugin') diff --git a/lib/plugins/plugin/admin.php b/lib/plugins/plugin/admin.php index a8115dffe..1b79018c1 100644 --- a/lib/plugins/plugin/admin.php +++ b/lib/plugins/plugin/admin.php @@ -312,18 +312,18 @@ class ap_manage { if (!is_dir("$tmp/$f")) continue; // check to make sure we aren't overwriting anything - if (!$overwrite && @file_exists(DOKU_PLUGIN."/$f")) { + if (!$overwrite && @file_exists(DOKU_PLUGIN.$f)) { // remember our settings, ask the user to confirm overwrite, FIXME continue; } - $instruction = @file_exists(DOKU_PLUGIN."/$f") ? 'update' : 'install'; + $instruction = @file_exists(DOKU_PLUGIN.$f) ? 'update' : 'install'; if (ap_copy("$tmp/$f", DOKU_PLUGIN.$f)) { $this->downloaded[] = $f; $this->plugin_writelog($f, $instruction, array($url)); } else { - $this->manager->error .= sprintf($lang['error_copy']."\n", $f); + $this->manager->error .= sprintf($this->lang['error_copy']."\n", $f); } } closedir($dh); -- cgit v1.2.3