Skip to content

Commit 52006d7

Browse files
committed
KnowledgeGraph.php
- enable the use of inverse properties
1 parent ba47cbc commit 52006d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

includes/KnowledgeGraph.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ public static function parserFunctionKnowledgeGraph( Parser $parser, ...$argv )
221221

222222
[ $values, $params ] = self::parseParameters( $argv, array_keys( $defaultParameters ) );
223223

224+
// check and enable the use of inverse properties
225+
if ( isset( $params['properties'] ) ) {
226+
$params['properties'] = preg_replace( '/\s*-\s*/', '', $params['properties'] );
227+
}
228+
224229
$params = self::applyDefaultParams( $defaultParameters, $params );
225230
$params['show-toolbar'] = false;
226231

0 commit comments

Comments
 (0)