From 28bc14e267daff85d66efc9467f40ce87bfcb858 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 1 Feb 2012 00:02:48 +0000 Subject: Plugins can now be enabled and disabled through WebAdmin WebPlugins can now have spaces in their tab names git-svn-id: http://mc-server.googlecode.com/svn/trunk@204 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebAdmin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/cWebAdmin.cpp') diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp index b99b8e779..901e24cd7 100644 --- a/source/cWebAdmin.cpp +++ b/source/cWebAdmin.cpp @@ -121,10 +121,10 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) cWebPlugin_Lua* LuaPlugin = dynamic_cast< cWebPlugin_Lua* >( WebPlugin ); if( LuaPlugin ) { - std::list< std::string > NameList = LuaPlugin->GetTabNames(); - for( std::list< std::string >::iterator Name = NameList.begin(); Name != NameList.end(); ++Name ) + std::list< std::pair > NameList = LuaPlugin->GetTabNames(); + for( std::list< std::pair >::iterator Names = NameList.begin(); Names != NameList.end(); ++Names ) { - Menu += "
  • " + (*Name) + "
  • "; + Menu += "
  • " + (*Names).first + "
  • "; } } else @@ -164,7 +164,7 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) cWebPlugin_Lua* LuaPlugin = dynamic_cast< cWebPlugin_Lua* >( WebPlugin ); if( LuaPlugin ) { - FoundPlugin += " - " + LuaPlugin->GetTabNameForRequest( &Request ); + FoundPlugin += " - " + LuaPlugin->GetTabNameForRequest( &Request ).first; } break; } -- cgit v1.2.3