Changeset 13493

Show
Ignore:
Timestamp:
11/19/07 12:10:54 (1 year ago)
Author:
bergie
Message:

Forward-porting [13488]: Deal with the /usr exception

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager2/type/text.php

    r13176 r13493  
    115115            if (isset($this->purify_config['Cache']['SerializerPath'])) 
    116116            { 
    117                 $this->purify_config['Cache']['SerializerPath'] = str_replace('__PREFIX__', $_MIDGARD['config']['prefix'], $this->purify_config['Cache']['SerializerPath']); 
    118                  
     117                if ($_MIDGARD['config']['prefix'] == '/usr') 
     118                { 
     119                    $this->purify_config['Cache']['SerializerPath'] = str_replace('__PREFIX__', '', $this->purify_config['Cache']['SerializerPath']); 
     120                } 
     121                else 
     122                { 
     123                    $this->purify_config['Cache']['SerializerPath'] = str_replace('__PREFIX__', $_MIDGARD['config']['prefix'], $this->purify_config['Cache']['SerializerPath']); 
     124                } 
     125                                 
    119126                if (!file_exists($this->purify_config['Cache']['SerializerPath'])) 
    120127                {