Browse Source

Fix fontawesome 403

Andy Baugh 5 năm trước cách đây
mục cha
commit
69a0e81ffb
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 3 0
      lib/Troglodyne/CGI.pm
  2. 1 1
      templates/ui/pgupgrade.tmpl

+ 3 - 0
lib/Troglodyne/CGI.pm

@@ -10,6 +10,8 @@ sub get_args {
 }
 
 # Yay. I now have ~250ms pageloads instead of 350+ms pageloads.
+# XXX Need to check when the chrome updates and pop cache then too?
+# Maybe upcp hook instead?
 sub render_cached_or_process_template {
     my ( $service, $input_hr ) = @_;
     if( $input_hr->{'troglodyne_do_static_render'} ) {
@@ -65,6 +67,7 @@ sub render_from_cache {
     }
     return $worked;
 }
+
 our $ULC = '/usr/local/cpanel';
 our %TMPL_DIRS_BY_SVC = (
     'whostmgr' => 'whostmgr/docroot/templates',

+ 1 - 1
templates/ui/pgupgrade.tmpl

@@ -7,7 +7,7 @@ END;
 
 SET styleSheets = [
     rtl_bootstrap,
-    '/libraries/fontawesome/css/font-awesome.min.css'
+    '../../libraries/fontawesome/css/fontawesome.min.css'
 ];
 
 WRAPPER 'master_templates/master.tmpl'