- Added parameter blockTags to controller Phrase

If this parameter is set to "no", it will be removed the tags <p> and </p>
from the beginning and from the end of the returned phrases
This commit is contained in:
paolo
2016-07-29 15:36:32 +02:00
parent fd826ae1fe
commit 4b82843c76
3 changed files with 17 additions and 4 deletions
@@ -54,10 +54,11 @@ class Phrase extends APIv1_Controller
$phrase = $this->get('phrase');
$orgeinheit_kurzbz = $this->get('orgeinheit_kurzbz');
$orgform_kurzbz = $this->get('orgform_kurzbz');
$blockTags = $this->get('blockTags');
if (isset($app) && isset($sprache))
{
$result = $this->phraseslib->getPhrases($app, $sprache, $phrase, $orgeinheit_kurzbz, $orgform_kurzbz);
$result = $this->phraseslib->getPhrases($app, $sprache, $phrase, $orgeinheit_kurzbz, $orgform_kurzbz, $blockTags);
$this->response($result, REST_Controller::HTTP_OK);
}