From b10a6fb0d85118df73bd5803f3a0e78845b8baad Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 14 Sep 2017 20:39:58 +0200 Subject: [PATCH] Simplify htmlescape --- Theme/Backend/department-list.tpl.php | 8 ++++---- Theme/Backend/department-profile.tpl.php | 6 +++--- Theme/Backend/position-create.tpl.php | 4 ++-- Theme/Backend/position-list.tpl.php | 8 ++++---- Theme/Backend/position-profile.tpl.php | 6 +++--- Theme/Backend/unit-create.tpl.php | 4 ++-- Theme/Backend/unit-list.tpl.php | 6 +++--- Theme/Backend/unit-profile.tpl.php | 6 +++--- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Theme/Backend/department-list.tpl.php b/Theme/Backend/department-list.tpl.php index 533e572..cbf7bd5 100644 --- a/Theme/Backend/department-list.tpl.php +++ b/Theme/Backend/department-list.tpl.php @@ -41,10 +41,10 @@ echo $this->getData('nav')->render(); ?> getData('list:elements') as $key => $value) : $c++; $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/organization/department/profile?{?}&id=' . $value->getId()); ?> - getId(), ENT_COMPAT, 'utf-8'); ?> - getName(), ENT_COMPAT, 'utf-8'); ?> - getParent()->getName(), ENT_COMPAT, 'utf-8'); ?> - getUnit()->getName(), ENT_COMPAT, 'utf-8'); ?> + printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + printHtml($value->getParent()->getName()); ?> + printHtml($value->getUnit()->getName()); ?> diff --git a/Theme/Backend/department-profile.tpl.php b/Theme/Backend/department-profile.tpl.php index fd7231a..9412b3e 100644 --- a/Theme/Backend/department-profile.tpl.php +++ b/Theme/Backend/department-profile.tpl.php @@ -27,9 +27,9 @@ echo $this->getData('nav')->render(); ?>
-
+
-
+
@@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
-
+
diff --git a/Theme/Backend/position-create.tpl.php b/Theme/Backend/position-create.tpl.php index d8df677..afd10b2 100644 --- a/Theme/Backend/position-create.tpl.php +++ b/Theme/Backend/position-create.tpl.php @@ -32,8 +32,8 @@ echo $this->getData('nav')->render(); ?> diff --git a/Theme/Backend/position-list.tpl.php b/Theme/Backend/position-list.tpl.php index e72474f..52cb63a 100644 --- a/Theme/Backend/position-list.tpl.php +++ b/Theme/Backend/position-list.tpl.php @@ -43,10 +43,10 @@ echo $this->getData('nav')->render(); ?> $value) : $count++; $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/organization/position/profile?{?}&id=' . $value->getId()); ?> - getId(), ENT_COMPAT, 'utf-8'); ?> - getName(), ENT_COMPAT, 'utf-8'); ?> - getParent()->getName(), ENT_COMPAT, 'utf-8'); ?> - getDepartment()->getName(), ENT_COMPAT, 'utf-8'); ?> + printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + printHtml($value->getParent()->getName()); ?> + printHtml($value->getDepartment()->getName()); ?> getHtml('Empty', 0, 0); ?> diff --git a/Theme/Backend/position-profile.tpl.php b/Theme/Backend/position-profile.tpl.php index f3b61c9..3e586d0 100644 --- a/Theme/Backend/position-profile.tpl.php +++ b/Theme/Backend/position-profile.tpl.php @@ -27,9 +27,9 @@ echo $this->getData('nav')->render(); ?>
-
+
-
+
@@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
-
+
diff --git a/Theme/Backend/unit-create.tpl.php b/Theme/Backend/unit-create.tpl.php index ba8ce1e..4934686 100644 --- a/Theme/Backend/unit-create.tpl.php +++ b/Theme/Backend/unit-create.tpl.php @@ -30,8 +30,8 @@ echo $this->getData('nav')->render(); ?> diff --git a/Theme/Backend/unit-list.tpl.php b/Theme/Backend/unit-list.tpl.php index d63a8c7..7160e5b 100644 --- a/Theme/Backend/unit-list.tpl.php +++ b/Theme/Backend/unit-list.tpl.php @@ -40,9 +40,9 @@ echo $this->getData('nav')->render(); ?> getData('list:elements') as $key => $value) : $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/organization/unit/profile?{?}&id=' . $value->getId()); ?> - getId()); ?> - getName(), ENT_COMPAT, 'utf-8'); ?> - getParent()->getName(), ENT_COMPAT, 'utf-8'); ?> + printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + printHtml($value->getParent()->getName()); ?> diff --git a/Theme/Backend/unit-profile.tpl.php b/Theme/Backend/unit-profile.tpl.php index 476d1eb..f94055a 100644 --- a/Theme/Backend/unit-profile.tpl.php +++ b/Theme/Backend/unit-profile.tpl.php @@ -27,16 +27,16 @@ echo $this->getData('nav')->render(); ?>
-
+
-
+
-
+