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
This commit is contained in:
@@ -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<std::string, std::string> > NameList = LuaPlugin->GetTabNames();
|
||||
for( std::list< std::pair<std::string, std::string> >::iterator Names = NameList.begin(); Names != NameList.end(); ++Names )
|
||||
{
|
||||
Menu += "<li><a href='" + BaseURL + WebPlugin->GetName() + "/" + (*Name) + "'>" + (*Name) + "</a></li>";
|
||||
Menu += "<li><a href='" + BaseURL + WebPlugin->GetName() + "/" + (*Names).second + "'>" + (*Names).first + "</a></li>";
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user