update for work on vserver and add header images
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 9 Jun 2014 19:25:16 +0000 (15:25 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 9 Jun 2014 19:25:16 +0000 (15:25 -0400)
add output in template object for header images
comment out for use in vserver php5.3

Toolkit/Page.php
config/server.ini

index 7832075..3d3116a 100755 (executable)
@@ -456,6 +456,13 @@ class Toolkit_Page
         $this->mainNav = $this->_getMainNav($this->_catid);
         $this->sideNav = $this->_getSideNav($this->_catid);
 
+        $headerDisplay = new Toolkit_HeaderImages_Display(
+            $this->_catid,
+            Toolkit_Database::getInstance()
+        );
+        $this->headerImage = $headerDisplay->getPageHeaderImage();
+        $this->headerBaseImageUrl = FILE_SERVER_URL . IS_OWNER_ID . '/headerImage/';
+
         $this->newsletterAction = Toolkit_Template_Page::getSeoUrl(
             $this->_pageGateway, 10
         );
index e6668b9..f5bd994 100644 (file)
@@ -258,8 +258,8 @@ app.base_secure_url = "https://vserver/app.gaslightmedia.com/"
 database.params.host = "devdb"
 error.reporting[] = E_ALL
 error.reporting[] = E_NOTICE
-error.reporting[] = E_STRICT
-error.reporting[] = E_WARNING
+;error.reporting[] = E_STRICT
+;error.reporting[] = E_WARNING
 
 email.owner                                 = "steve+owner@localhost"
 email.contact                               = "steve+contact@localhost"