[pLog-svn] r5117 - in plugins/branches/lifetype-1.2/closecomments: . locale
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Mar 16 18:51:08 EDT 2007
Author: oscar
Date: 2007-03-16 18:51:08 -0400 (Fri, 16 Mar 2007)
New Revision: 5117
Modified:
plugins/branches/lifetype-1.2/closecomments/locale/locale_en_UK.php
plugins/branches/lifetype-1.2/closecomments/pluginclosecomments.class.php
Log:
I think this location in the menu structure is more suitable (under "manage anti-spam plugins")
Modified: plugins/branches/lifetype-1.2/closecomments/locale/locale_en_UK.php
===================================================================
--- plugins/branches/lifetype-1.2/closecomments/locale/locale_en_UK.php 2007-03-16 22:44:47 UTC (rev 5116)
+++ plugins/branches/lifetype-1.2/closecomments/locale/locale_en_UK.php 2007-03-16 22:51:08 UTC (rev 5117)
@@ -10,4 +10,5 @@
$messages['closecomments_period_help'] = 'How many days after an article is published should comments be allowed? Comments will be closed after this period.';
$messages['error_updating_closecomments_settings'] = 'There was an error updating the plugin settings';
$messages['closecomment_settings_saved_ok'] = 'Plugin settings saved successfully';
+$messages["manageAntiSpamPlugins"] = "Anti Spam Management";
?>
\ No newline at end of file
Modified: plugins/branches/lifetype-1.2/closecomments/pluginclosecomments.class.php
===================================================================
--- plugins/branches/lifetype-1.2/closecomments/pluginclosecomments.class.php 2007-03-16 22:44:47 UTC (rev 5116)
+++ plugins/branches/lifetype-1.2/closecomments/pluginclosecomments.class.php 2007-03-16 22:51:08 UTC (rev 5117)
@@ -21,9 +21,14 @@
// register our admin actions and menu entries
if( $this->getSource() == "admin" ) {
+
+ $menu =& Menu::getMenu();
+ if( !$menu->entryExists( "/menu/controlCenter/manageAntiSpamPlugins" ))
+ $this->addMenuEntry( "/menu/controlCenter", "manageAntiSpamPlugins", "", "" );
+ $this->addMenuEntry( "/menu/controlCenter/manageAntiSpamPlugins", "closeComments", "?op=closeCommentsSettings" );
+
$this->registerAdminAction( "closeCommentsSettings", "AdminCloseCommentsSettingsAction" );
$this->registerAdminAction( "updateCloseCommentsSettings", "AdminUpdateCloseCommentsSettingsAction" );
- $this->addMenuEntry( "/menu/controlCenter/manageSettings", "closeComments", "?op=closeCommentsSettings" );
// register the needed event
$this->registerNotification( EVENT_POST_LOADED );
More information about the pLog-svn
mailing list