$file = $application;
$application = "";
}
- self::$scripts[] = "$application/js/$file";
+ if( !empty( $application )){
+ self::$scripts[] = "$application/js/$file";
+ }else{
+ self::$scripts[] = "js/$file";
+ }
}
/**
$file = $application;
$application = "";
}
- self::$styles[] = "$application/css/$file";
+ if( !empty( $application )){
+ self::$styles[] = "$application/css/$file";
+ }else{
+ self::$styles[] = "css/$file";
+ }
}
/**
if( file_exists( "$SERVERROOT/apps/img/$app/$image" )){
return "$WEBROOT/apps/img/$app/$image";
}
- return "$WEBROOT/$app/img/$image";
+ if( !empty( $app )){
+ return "$WEBROOT/$app/img/$image";
+ }else{
+ return "$WEBROOT/img/$image";
+ }
}
/**