summaryrefslogtreecommitdiffstats
path: root/source/cWebAdmin.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 01:02:48 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 01:02:48 +0100
commit28bc14e267daff85d66efc9467f40ce87bfcb858 (patch)
treea2ab38d5f8805c64294905a4b65b694d6dfeacf7 /source/cWebAdmin.cpp
parentChanged how Lua handles the (Post)Params in the HTTPRequest of a WebPlugin (diff)
downloadcuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.tar
cuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.tar.gz
cuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.tar.bz2
cuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.tar.lz
cuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.tar.xz
cuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.tar.zst
cuberite-28bc14e267daff85d66efc9467f40ce87bfcb858.zip
Diffstat (limited to 'source/cWebAdmin.cpp')
-rw-r--r--source/cWebAdmin.cpp8
1 files changed, 4 insertions, 4 deletions
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<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;
}