Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyuexrow committed Apr 12, 2016
1 parent 8226ee7 commit 7213b49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autoloads/xrowmetadataoperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function namedParameterList()
);
}

static function getPlaceholders($str)
function getPlaceholders($str)
{
$result = array();
preg_match_all('/(?<=\[)([^\]]*?)(?=\])/',$str, $result);
Expand Down Expand Up @@ -74,11 +74,11 @@ function modify( $tpl, $operatorName, $operatorParameters, &$rootNamespace, &$cu
{
if(isset($operatorValue->title))
{
$operatorValue->title = self::getReplaceValue( $operatorValue->title,$replaceArray );
$operatorValue->title = $this->getReplaceValue( $operatorValue->title,$replaceArray );
}
if(isset($operatorValue->description))
{
$operatorValue->description = self::getReplaceValue( $operatorValue->description,$replaceArray );
$operatorValue->description = $this->getReplaceValue( $operatorValue->description,$replaceArray );
}
}
}
Expand All @@ -102,10 +102,10 @@ function modify( $tpl, $operatorName, $operatorParameters, &$rootNamespace, &$cu
* @param array $replaceArray
* @return string
*/
protected static function getReplaceValue($operatorValue,$replaceArray)
protected function getReplaceValue($operatorValue,$replaceArray)
{
$search_value = $operatorValue;
$placeholder_array = self::getPlaceholders($search_value);
$placeholder_array = $this->getPlaceholders($search_value);
if(count($placeholder_array) !== 0)
{
foreach($placeholder_array as $placeholder_value)
Expand Down

0 comments on commit 7213b49

Please sign in to comment.