Procházet zdrojové kódy

Fix fontawesome 403

Andy Baugh před 5 roky
rodič
revize
69a0e81ffb
2 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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'