To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4529

Show
Ignore:
Timestamp:
01/29/12 10:20:17 (4 months ago)
Author:
tboutell
Message:

Don't generate warnings if mkdir fails because the folder is already there as a symlink (so is_dir fails)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/1.5/lib/toolkit/BaseaFiles.class.php

    r4503 r4529  
    210210      { 
    211211        // There's a recursive mkdir flag in PHP 5.x, neato 
    212         if (!mkdir($path, 0777, true)) 
     212        // Occasionally this will already exist because of a symlink, 
     213        // suppress the warning 
     214        if (!@mkdir($path, 0777, true)) 
    213215        { 
    214216          // It's better to report $ancestor rather than $path because