Ignore:
Timestamp:
May 3, 2014 3:13:19 PM (10 years ago)
Author:
anonymous
Message:

Added cookie storage to Prefs(). Created App->addCookie method. Improved PHP version checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Upload.inc.php

    r468 r477  
    8686                if (!is_dir($params['upload_path'])) {
    8787                    $app->logMsg(sprintf('Attempting to auto-create upload directory: %s', $params['upload_path']), LOG_NOTICE, __FILE__, __LINE__);
    88                     if (phpversion() > '5') {
     88                    if (version_compare(PHP_VERSION, '5.0.0', '>=')) {
    8989                        // Recursive.
    9090                        mkdir($params['upload_path'], isset($params['dest_dir_perms']) ? $params['dest_dir_perms'] : $this->getParam('dest_dir_perms'), true);
Note: See TracChangeset for help on using the changeset viewer.