Skip to content

Commit 09e024a

Browse files
authored
Mark modX::parseChunk as deprecated (#15978)
1 parent 51bbd1b commit 09e024a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/Revolution/modX.php

+2
Original file line numberDiff line numberDiff line change
@@ -1954,8 +1954,10 @@ public function getChunk($chunkName, array $properties= []) {
19541954
* @param string $prefix The placeholder prefix, defaults to [[+.
19551955
* @param string $suffix The placeholder suffix, defaults to ]].
19561956
* @return string The processed chunk with the placeholders replaced.
1957+
* @deprecated Prefer using $modx->getChunk, to be removed in MODX 4.0.
19571958
*/
19581959
public function parseChunk($chunkName, $chunkArr, $prefix='[[+', $suffix=']]') {
1960+
$this->deprecated('3.0.0', 'Use $modx->getChunk instead');
19591961
$chunk= $this->getChunk($chunkName);
19601962
if (!empty($chunk) || $chunk === '0') {
19611963
if(is_array($chunkArr)) {

0 commit comments

Comments
 (0)