diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 3bcb69af..075ba1e2 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -198,6 +198,11 @@ EOL else @tex_content = 'TeX export only supported with the Markdown text filters.' end + if @tex_content == '' + flash[:error] = "You didn't select any pages to export." + redirect_to :back + return + end expire_action :controller => 'wiki', :web => @web.address, :action => 'list', :category => params['category'] render(:layout => 'tex') end diff --git a/app/views/wiki/list.rhtml b/app/views/wiki/list.rhtml index 3de43c9d..9abb16de 100644 --- a/app/views/wiki/list.rhtml +++ b/app/views/wiki/list.rhtml @@ -18,7 +18,7 @@ <% if params['category'] -%> <%- end -%> -