From 645d2c6401e30c657bf7ed38f819456bc84845f0 Mon Sep 17 00:00:00 2001
From: "Alexandr Kostrikov(root)" <alexandr.kostrikov@gmail.com>
Date: Wed, 6 Jul 2011 17:16:08 +0400
Subject: [PATCH] Fixed wrong paths for static files

---
 app/controllers/graphs_controller.rb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/controllers/graphs_controller.rb b/app/controllers/graphs_controller.rb
index 6dd9e0a..728981d 100644
--- a/app/controllers/graphs_controller.rb
+++ b/app/controllers/graphs_controller.rb
@@ -2,6 +2,8 @@ require 'SVG/Graph/TimeSeries'
 
 class GraphsController < ApplicationController
 
+    unloadable
+
     ############################################################################
     # Initialization
     ############################################################################
@@ -92,7 +94,7 @@ class GraphsController < ApplicationController
             :show_data_points => false,
             :show_data_values => false,
             :stagger_x_labels => true,
-            :style_sheet => "/plugin_assets/redmine_graphs/stylesheets/issue_growth.css",
+            :style_sheet => "/plugin_assets/redmine-graphs-plugin/stylesheets/issue_growth.css",
             :width => 720,
             :x_label_format => "%Y-%m-%d"
         })
@@ -154,7 +156,7 @@ class GraphsController < ApplicationController
             :show_data_points => false,
             :show_data_values => false,
             :stagger_x_labels => true,
-            :style_sheet => "/plugin_assets/redmine_graphs/stylesheets/issue_age.css",
+            :style_sheet => "/plugin_assets/redmine-graphs-plugin/stylesheets/issue_age.css",
             :width => 720,
             :x_label_format => "%b %d"
         })
@@ -202,7 +204,7 @@ class GraphsController < ApplicationController
             :show_data_points => true,
             :show_data_values => false,
             :stagger_x_labels => true,
-            :style_sheet => "/plugin_assets/redmine_graphs/stylesheets/target_version.css",
+            :style_sheet => "/plugin_assets/redmine-graphs-plugin/stylesheets/target_version.css",
             :width => 800,
             :x_label_format => "%b %d"
         })