X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-repair_cats.php;h=07143534ebdf674e7d08aaf2bcc0a069c376c62e;hb=00283a82c807a00d66bd5811d41992bb3b059996;hp=898ac79c6408266faddbb8490c228299a9aaee4a;hpb=fffda3f261e2e4821e3fc1bf1d7bf25431fca300;p=mailer.git diff --git a/inc/modules/admin/what-repair_cats.php b/inc/modules/admin/what-repair_cats.php index 898ac79c64..07143534eb 100644 --- a/inc/modules/admin/what-repair_cats.php +++ b/inc/modules/admin/what-repair_cats.php @@ -8,17 +8,15 @@ * -------------------------------------------------------------------- * * Short description : Repairs category selections * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Repariert Kategorieauswahlen * + * Kurzbeschreibung : Repariert Kategorien * * -------------------------------------------------------------------- * * $Revision:: $ * * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -43,11 +41,11 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Go through all categories $result = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__); -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // Nothing is removed for now... ;-) $REMOVED = '0'; @@ -64,18 +62,18 @@ if (SQL_NUMROWS($result) > 0) { if ($REMOVED > 0) { // Entries repaired - $content = getMaskedMessage('ADMIN_REPAIR_ENTRIES_FIXED', $REMOVED); + $content = '{%message,ADMIN_REPAIR_ENTRIES_FIXED=' . $REMOVED . '%}'; } else { // Nothing repaired - $content = '
{--ADMIN_REPAIR_NOTHING_FIXED--}
'; + $content = '
{--ADMIN_REPAIR_NOTHING_FIXED--}
'; } } else { // No category selections found, no members registered? - $content = '
{--ADMIN_REPAIR_CATS_NOTHING--}
'; + $content = '
{--ADMIN_REPAIR_CATEGORIES_NOTHING--}
'; } // Load template -loadTemplate('admin_settings_saved', false, $content); +displayMessage($content); // [EOF] ?>