Fixed regular expression to pick up S5 theme.
This commit is contained in:
parent
b8911bc388
commit
61b7168d7a
|
@ -293,7 +293,7 @@ class WikiController < ApplicationController
|
|||
end
|
||||
|
||||
def s5
|
||||
if @page.revisions.last =~ /^slide_theme:\s*(.+)$/
|
||||
if @page.revisions.last.content =~ /^slide_theme:\s*([\w\d]+)/
|
||||
@s5_theme = $1
|
||||
else
|
||||
@s5_theme = "default"
|
||||
|
|
Loading…
Reference in a new issue