Changeset 613609
- Timestamp:
- 10/17/2012 02:02:37 PM (13 years ago)
- Location:
- edge-suite/trunk/includes
- Files:
-
- 2 edited
-
edge-suite-comp-builder.inc (modified) (1 diff)
-
edge-suite-general.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
edge-suite/trunk/includes/edge-suite-comp-builder.inc
r608321 r613609 401 401 protected function alterMainEdgeJs() { 402 402 $file = $this->mainEdgeJS; 403 // Do an extensive file / permission check as this seems to fail with many server configs. 404 if(!file_exists($file)){ 405 throw new Exception('Main edge file ' . $file . ' does not exist.'); 406 } 407 408 if(!is_readable($file)){ 409 throw new Exception('Main edge file' . $file . ' exists but is not readable.'); 410 } 411 403 412 $content = file_get_contents($file); 413 if(!isset($content) || empty($content)){ 414 throw new Exception('Main edge file ' . $file . ' does exist, cleared is_readable check, but can not be read.'); 415 } 404 416 405 417 $this->parseDimensions($content); -
edge-suite/trunk/includes/edge-suite-general.php
r608321 r613609 82 82 $filesystem = new WP_Filesystem_Direct(null); 83 83 84 // Set up default file/folder permissions (copied from WP_Filesystem()). 85 if ( ! defined('FS_CHMOD_DIR') ) 86 define('FS_CHMOD_DIR', 0755 ); 87 if ( ! defined('FS_CHMOD_FILE') ) 88 define('FS_CHMOD_FILE', 0644 ); 89 84 90 $z = new ZipArchive(); 85 91
Note: See TracChangeset
for help on using the changeset viewer.