Changeset 18637 for trunk/wp-includes/ms-functions.php
- Timestamp:
- 09/05/2011 04:53:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r18560 r18637 1522 1522 $size = 0; 1523 1523 1524 if ( substr( $directory, -1 ) == '/' ) 1525 $directory = substr($directory,0,-1); 1524 $directory = untrailingslashit( $directory ); 1526 1525 1527 1526 if ( !file_exists($directory) || !is_dir( $directory ) || !is_readable( $directory ) ) … … 1566 1565 $spaceAllowed = 10; // Default space allowed is 10 MB 1567 1566 1568 $dirName = BLOGUPLOADDIR; 1569 $size = get_dirsize($dirName) / 1024 / 1024; 1567 $size = get_dirsize( BLOGUPLOADDIR ) / 1024 / 1024; 1570 1568 1571 1569 if ( ($spaceAllowed-$size) < 0 ) { … … 1648 1646 1649 1647 $spaceAllowed = 1024 * 1024 * get_space_allowed(); 1650 $dirName = BLOGUPLOADDIR; 1651 $dirsize = get_dirsize($dirName) ; 1648 $dirsize = get_dirsize( BLOGUPLOADDIR ); 1652 1649 if ( $size > $spaceAllowed - $dirsize ) 1653 1650 return $spaceAllowed - $dirsize; // remaining space
Note: See TracChangeset
for help on using the changeset viewer.