Development

Changeset 14385

You must first sign up to be able to contribute.

Changeset 14385

Show
Ignore:
Timestamp:
12/30/08 09:36:18 (6 months ago)
Author:
noel
Message:

[1.0] fixed i18N and open_basedir restriction problem (closes #1445)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/controller/sfController.class.php

    r9940 r14385  
    270270        if (sfConfig::get('sf_i18n')) 
    271271        { 
    272           $this->context->getI18N()->setMessageSourceDir(sfLoader::getI18NDir($moduleName), $this->context->getUser()->getCulture()); 
     272          if (sfLoader::getI18NDir($moduleName)) 
     273          { 
     274            $this->context->getI18N()->setMessageSourceDir(sfLoader::getI18NDir($moduleName), $this->context->getUser()->getCulture()); 
     275          } 
     276          else 
     277          { 
     278            $this->context->getI18N()->setMessageSourceDir(sfConfig::get('sf_app_i18n_dir'), $this->context->getUser()->getCulture()); 
     279          } 
    273280        } 
    274281 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.