engines/file.php

expandonline - April 3, 2009 - 09:30
Project:Cache Router
Version:6.x-1.0-beta8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Line 15 engines/file.php creates a PHP error about undefined arrays as the specific bins are not defined.

replaced code block with:

<?php
   
// Assign the path on the following order: bin specific -> default specific -> /tmp/filepath
   
if (isset($conf['cacherouter'][$bin]['path'])) {
     
$this->fspath = $conf['cacherouter'][$bin]['path'];
    }
    elseif (isset(
$conf['cacherouter']['default']['path'])) {
     
$this->fspath = $conf['cacherouter']['default']['path'];
    }
?>

which seems to work

#1

expandonline - April 3, 2009 - 09:49

Here's the patch file:

AttachmentSize
cacherouter_6.x-1.0-beta8_file-engine.patch 911 bytes

#2

slantview - September 3, 2009 - 08:46
Status:needs review» fixed

Fixed in latest cvs commit. Thank you!

#3

System Message - September 17, 2009 - 08:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.