From a885e4d8b3842709c71e077ea991342c7f4aa814 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 25 Nov 2009 09:54:56 +0100 Subject: distinguish between title and url --- access_control.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'access_control.rb') diff --git a/access_control.rb b/access_control.rb index 65589b7..c1aea8a 100755 --- a/access_control.rb +++ b/access_control.rb @@ -29,9 +29,11 @@ olddir = File.expand_path(".") Dir.chdir("..") load "html.rb" load "config.rb" +require "poll" +require "yaml" Dir.chdir(olddir) -POLL = File.basename(File.expand_path(".")) +POLL = YAML::load_file("data.yaml").name $html = HTML.new("dudle - #{POLL} - Access Control Settings") $html.header["Cache-Control"] = "no-cache" -- cgit v1.2.3