[Fix] Images / CSS Not loading

Marc Fournier <[email protected]>
Newsgroups gmane.mail.virus.maiamailguard
Message-ID <[email protected]>
Hopefully I didn’t miss this already going through the list, but after upgrading to 1.04, had issues with the pages not being formatted … being slow, didn’t clue into it being because the css/images weren’t being loaded, had a click slap me upside the head for that … the problem is that it looks like smarty.php assumes I have maia installed at /, not as a subdirectory, so it has all the theme stuff hardcoded to / … if this is already “fixed”, sorry for wasted bandwidth, but if not, the fix is simple:

*** /tmp/smarty.php     Thu May  7 18:13:19 2015
--- smarty.php  Thu May  7 18:11:58 2015
***************
*** 98,104 ****
              } else {
                  $this->plugins_dir = array($this->_basedir.'code/', "Smarty/plugins");
              }
!             $this->assign('template_dir', '/themes/'.$theme.'/');
          }
          
          function getBaseDir() {
--- 98,104 ----
              } else {
                  $this->plugins_dir = array($this->_basedir.'code/', "Smarty/plugins");
              }
!             $this->assign('template_dir', 'themes/'.$theme.'/');
          }
          
          function getBaseDir() {



Marc G Fournier
Owner, Hub.Org Hosting Solutions S.A.

_______________________________________________
Maia-users mailing list
[email protected]
http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.