Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.655 kb
<?php
/**
*
* Bootstrap file with autoloader.
*
*/
function csscrush_autoload ( $class ) {
// Only autoload classes with the library prefix.
if ( stripos( $class, 'csscrush' ) !== 0 ) {
return;
}
// Tolerate some cases of lowercasing.
$class = str_ireplace( 'csscrush', 'CssCrush', $class );
$subpath = implode( '/', array_map( 'ucfirst', explode( '_', $class ) ) );
require_once dirname( __FILE__ ) . "/lib/$subpath.php";
}
spl_autoload_register( 'csscrush_autoload' );
// Core.php will also be autoloaded with API changes in v2.x.
require_once 'lib/CssCrush/Core.php';
require_once 'lib/functions.php';
Jump to Line
Something went wrong with that request. Please try again.