mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Merge pull request #3256 from yesszus/patch-2
Issue #6 Update lan_admin.php
This commit is contained in:
commit
cf2fe0ed31
@ -40,7 +40,7 @@ class comments_admin extends e_admin_dispatcher
|
||||
// 'main/create' => array('caption'=> LAN_CREATE, 'perm' => '0'),
|
||||
'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => '0'),
|
||||
// 'main/custom' => array('caption'=> 'Custom Page', 'perm' => '0')
|
||||
'main/tools' => array('caption'=> 'Tools', 'perm' => '0'),
|
||||
'main/tools' => array('caption'=> ADLAN_CL_6, 'perm' => '0'),
|
||||
);
|
||||
|
||||
protected $adminMenuAliases = array(
|
||||
@ -191,7 +191,7 @@ class comments_admin_ui extends e_admin_ui
|
||||
$this->toolsProcessPage();
|
||||
|
||||
$text = "<form method='post' action='".e_SELF."?".e_QUERY."'>";
|
||||
$text .= e107::getForm()->admin_button('recalcComments', 'Recalculate comment count');
|
||||
$text .= e107::getForm()->admin_button('recalcComments', LAN_RECALCULATE_COMMENT_COUNT);
|
||||
|
||||
$text .= "</form>";
|
||||
return $text;
|
||||
@ -225,7 +225,7 @@ class comments_admin_ui extends e_admin_ui
|
||||
}
|
||||
}
|
||||
}
|
||||
$mes->addSuccess('Comment count successfully recalculated!');
|
||||
$mes->addSuccess(LAN_SUCC_RECALCULATE_COMMENT_COUNT);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -551,3 +551,5 @@ define("LAN_UI_FILTER_NEXT_WEEK", "Next Week");
|
||||
define("LAN_UI_FILTER_NEXT_MONTH", "Next Month");
|
||||
define("LAN_UI_FILTER_NEXT_YEAR", "Next Year");
|
||||
define("LAN_UI_FILTER_IS_EMPTY", "Is Empty");
|
||||
define("LAN_RECALCULATE_COMMENT_COUNT", "Recalculate comment count");
|
||||
define("LAN_SUCC_RECALCULATE_COMMENT_COUNT", "Comment count successfully recalculated!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user