summaryrefslogtreecommitdiffstats
path: root/source/cWebAdmin.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-23 01:29:15 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-23 01:29:15 +0200
commiteba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f (patch)
tree10dbcb93d186a95bc94c1fdf015fc93bac29377d /source/cWebAdmin.cpp
parentAdded a RateCompareString function to StringUtils (diff)
downloadcuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar
cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.gz
cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.bz2
cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.lz
cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.xz
cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.zst
cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.zip
Diffstat (limited to '')
-rw-r--r--source/cWebAdmin.cpp9
1 files changed, 3 insertions, 6 deletions
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;
}
}