-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Small refactoring - Update nikic/FastRoute to version 1.3.0 - Small fixes
- Loading branch information
Showing
44 changed files
with
858 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
<?php | ||
|
||
$chunks = array(); | ||
$chunks = []; | ||
|
||
$tmp = array( | ||
'fastrouter' => array( | ||
$tmp = [ | ||
'fastrouter' => [ | ||
'file' => 'fastrouter', | ||
'source' => false, | ||
'description' => '', | ||
), | ||
); | ||
], | ||
]; | ||
|
||
// Save chunks for setup options | ||
$BUILD_CHUNKS = array(); | ||
$BUILD_CHUNKS = []; | ||
|
||
foreach ($tmp as $k => $v) { | ||
/* @avr modChunk $chunk */ | ||
$chunk = $modx->newObject('modChunk'); | ||
$chunk->fromArray(array( | ||
$chunk->fromArray([ | ||
'id' => 0, | ||
'name' => $k, | ||
'description' => $v['description'], | ||
'snippet' => file_get_contents($sources['source_core'] . '/elements/chunks/chunk.' . $v['file'] . '.tpl'), | ||
'static' => BUILD_CHUNK_STATIC, | ||
'source' => $v['source'], | ||
'static_file' => 'core/components/' . PKG_NAME_LOWER . '/elements/chunks/chunk.' . $v['file'] . '.tpl', | ||
), '', true, true); | ||
], '', true, true); | ||
|
||
$chunks[] = $chunk; | ||
|
||
$BUILD_CHUNKS[$k] = file_get_contents($sources['source_core'] . '/elements/chunks/chunk.' . $v['file'] . '.tpl'); | ||
} | ||
|
||
unset($tmp); | ||
|
||
return $chunks; |
Oops, something went wrong.