From 208eabd908293ffc4ca55671be02b7c8f9c28ca1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 29 Sep 2003 19:11:39 +0000 Subject: - Fixed import and comment module problems. Patch by Gabor. > Currently the admin menu does not work for comment.module and import > module. Import module has the problem of not taking care of the fact in > the arg() function calls that the module is pushed one level down in the > menu (similar to the user.module and block.modules problems already > fixed). The comment.module has a problem with trying to translate an $op > which comes from the URL (and is therefore not translated). > > The attached patch also fixes the bogus URLs in import.module help texts > (as the module part is pushed down into /admin/node instead of /admin). --- modules/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index f2830e9dd..f77dd65d9 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1167,7 +1167,7 @@ function comment_admin() { $op = arg(2); } - if ($op == t("moderation")) { + if ($op == "moderation") { $op = arg(3); } -- cgit v1.2.3