Development

Changeset 3959

You must first sign up to be able to contribute.

Changeset 3959

Show
Ignore:
Timestamp:
05/08/07 15:18:23 (1 year ago)
Author:
superhaggis
Message:

Refactored CSS theme path computation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfBBPlugin/modules/sfBB/lib/sfBBPlugin_sfBBActions.class.php

    r3958 r3959  
    2222  public function preExecute() 
    2323  { 
    24     $theme = sfConfig::get('app_sf_bb_plugin_theme') ? sfConfig::get('app_sf_bb_plugin_theme') : 'default'
     24    $theme = sfConfig::get('app_sf_bb_plugin_theme', 'default')
    2525 
    2626    $this->getResponse()->addStylesheet('/sfBBPlugin/css/'.$theme.'.css'); 
     
    3030  { 
    3131    $c = new Criteria(); 
    32     $c->add(sfBBCategoryPeer::IS_LIVE, 1); 
     32    $c->add(sfBBCategoryPeer::IS_LIVE, true); 
    3333    $this->categories = sfBBCategoryPeer::doSelect($c); 
    3434  } 
     
    3838    $c = new Criteria(); 
    3939    $c->add(sfBBForumPeer::ID, $this->getRequestParameter('id')); 
    40     $c->add(sfBBForumPeer::IS_LIVE, 1); 
     40    $c->add(sfBBForumPeer::IS_LIVE, true); 
    4141    $forum = sfBBForumPeer::doSelectOne($c); 
    4242