From eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Aug 2012 23:29:15 +0000 Subject: Fixed WebAdmin showing tab names (thanks for pointing it out Lapayo) Changed some std::string to AString git-svn-id: http://mc-server.googlecode.com/svn/trunk@780 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebAdmin.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source/cWebAdmin.cpp') diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp index b12428711..32cf5e338 100644 --- a/source/cWebAdmin.cpp +++ b/source/cWebAdmin.cpp @@ -195,14 +195,11 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) Content = (*itr)->HandleWebRequest( &Request ); cWebPlugin* WebPlugin = *itr; FoundPlugin = WebPlugin->GetName(); - /* - TODO: Is this needed anymore? - cWebPlugin_Lua* LuaPlugin = dynamic_cast< cWebPlugin_Lua* >( WebPlugin ); - if( LuaPlugin ) + AString TabName = WebPlugin->GetTabNameForRequest( &Request ).first; + if( TabName.empty() == false ) { - FoundPlugin += " - " + LuaPlugin->GetTabNameForRequest( &Request ).first; + FoundPlugin += " - " + TabName; } - */ break; } } -- cgit v1.2.3