Version 5.0.14
This commit is contained in:
1 parent
5efe744c5f
commit
dbd774b30c
364 files changed
+7048
-1377
No files matched your search
@@ -1268,6 +1268,13 @@ class Page extends Model implements Permissions
|
||||
try
|
||||
{
|
||||
$template = Templates::load( $key );
|
||||
|
||||
/* If this is an empty file, don't bother loading it */
|
||||
if( empty( $template->content ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$object = $template->_file_object;
|
||||
|
||||
$return['js'][ $key ] = $object;
|
||||
@@ -1287,6 +1294,13 @@ class Page extends Model implements Permissions
|
||||
try
|
||||
{
|
||||
$template = Templates::load( $key );
|
||||
|
||||
/* Skip if empty */
|
||||
if( empty( $template->content ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$object = $template->_file_object;
|
||||
|
||||
$return['css'][ $key ] = $object;
|
||||
|
||||
Reference in new issue
Block a user