From 63f829666b425dea875b10dba3371e141e8a1531 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sun, 24 May 2015 16:32:15 +0200 Subject: [PATCH] rename plugins folder --- lib/template/{plugin => plugins}/block.lang.php | 4 ++-- lib/template/{plugin => plugins}/function.pages.php | 2 +- lib/template/{plugin => plugins}/prefilter.hascontent.php | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename lib/template/{plugin => plugins}/block.lang.php (93%) rename lib/template/{plugin => plugins}/function.pages.php (99%) rename lib/template/{plugin => plugins}/prefilter.hascontent.php (100%) diff --git a/lib/template/plugin/block.lang.php b/lib/template/plugins/block.lang.php similarity index 93% rename from lib/template/plugin/block.lang.php rename to lib/template/plugins/block.lang.php index e869450..ed89977 100644 --- a/lib/template/plugin/block.lang.php +++ b/lib/template/plugins/block.lang.php @@ -13,13 +13,13 @@ * Smarty {lang}{/lang} block plugin */ function smarty_block_lang($params, $content, $template, &$repeat) { - if (is_null($content) || empty($content)) { + if ($content === null || empty($content)) { return; } $lang = $template->smarty->getTemplateVars('language'); - if (is_null($lang)) { + if ($lang === null) { return $content; } diff --git a/lib/template/plugin/function.pages.php b/lib/template/plugins/function.pages.php similarity index 99% rename from lib/template/plugin/function.pages.php rename to lib/template/plugins/function.pages.php index c17f8e6..7408973 100644 --- a/lib/template/plugin/function.pages.php +++ b/lib/template/plugins/function.pages.php @@ -147,4 +147,4 @@ function makeNextLink($link, $pageNo, $pages) { else { return ''."\n"; } -} \ No newline at end of file +} diff --git a/lib/template/plugin/prefilter.hascontent.php b/lib/template/plugins/prefilter.hascontent.php similarity index 100% rename from lib/template/plugin/prefilter.hascontent.php rename to lib/template/plugins/prefilter.hascontent.php -- 2.20.1