summaryrefslogtreecommitdiffstats
path: root/plugins/function.parse_service.php
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2018-11-19 12:10:49 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2018-11-19 12:22:12 +0100
commitb4702736fc52780cb848d699d06e73ec3165290b (patch)
tree4a8217405149eee38217a54d5a05b08d3ae57093 /plugins/function.parse_service.php
parentec4c627649a0b31f804f9cbdbfc84d375b774cd2 (diff)
downloaddokuwiki-b4702736fc52780cb848d699d06e73ec3165290b.tar.gz
dokuwiki-b4702736fc52780cb848d699d06e73ec3165290b.tar.bz2
dokuwiki-b4702736fc52780cb848d699d06e73ec3165290b.zip
Update to new dokuwiki version, replace smarty with twig
Diffstat (limited to 'plugins/function.parse_service.php')
-rw-r--r--plugins/function.parse_service.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/function.parse_service.php b/plugins/function.parse_service.php
deleted file mode 100644
index aa9983d..0000000
--- a/plugins/function.parse_service.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-
-function smarty_function_parse_service($params, Smarty_Internal_Template $template)
-{
- if (empty($params['var'])) {
- trigger_error("assign: missing 'var' parameter");
- return;
- }
-
- if (!in_array('value', array_keys($params))) {
- trigger_error("assign: missing 'value' parameter");
- return;
- }
-
- $name = $params['value'];
- $port = null;
-
- if (is_array($params['value'])) {
- $name = array_keys($params['value'])[0];
- $port = array_values($params['value'])[0];
- }
-
- $template->assign($params['var'], array('name' => $name, 'port' => $port));
-}
-
-?>