Enable specific version to be passed to ver()

This commit is contained in:
str4d
2013-06-03 23:46:35 +00:00
parent 436bf3801b
commit 983628e09e
2 changed files with 6 additions and 4 deletions

View File

@ -87,8 +87,10 @@ def utility_processor():
logo = 'images/i2plogo.png'
return logo
def get_current_version(string=None):
def get_current_version(string=None, ver=None):
if string:
if ver:
return string % ver
return string % CURRENT_I2P_VERSION
return CURRENT_I2P_VERSION