diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-10-28 21:06:06 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-10-28 21:06:06 +0100 |
commit | cfa34430b907f7598c55e2353301a853fc4f5c7f (patch) | |
tree | cd61b38a25c7812a18703138e63bff0ea39dbb65 /src/web/web.vala | |
parent | dbcace5e7de23a48e8686171c7a412a950acc764 (diff) | |
download | serial-barcode-scanner-cfa34430b907f7598c55e2353301a853fc4f5c7f.tar.bz2 |
simplify string building by using vala's template system
Diffstat (limited to 'src/web/web.vala')
-rw-r--r-- | src/web/web.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web.vala b/src/web/web.vala index 30dbcf8..1b8ba8c 100644 --- a/src/web/web.vala +++ b/src/web/web.vala @@ -496,7 +496,7 @@ public class WebServer { string categories = ""; foreach(var c in db.get_category_list()) { - categories += "<option value=\"%lld\">%s</option>".printf(c.id, c.name); + categories += @"<option value=\"$(c.id)\">$(c.name)</option>"; } t.replace("CATEGORIES", categories); |