summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-04-11 12:53:21 -0400
committerBrian Evans <grknight@gentoo.org>2019-04-11 12:53:21 -0400
commitdb5e01ab9b00e96c9e69023384494eae50a4ce68 (patch)
treeaabfe0443d32f52a4495f5e003c00968eb557073 /Widgets/smarty/libs/plugins/modifiercompiler.count_sentences.php
parentUpdate UserMerge for 1.32 (diff)
downloadextensions-db5e01ab9b00e96c9e69023384494eae50a4ce68.tar.gz
extensions-db5e01ab9b00e96c9e69023384494eae50a4ce68.tar.bz2
extensions-db5e01ab9b00e96c9e69023384494eae50a4ce68.zip
Update Widgets for 1.32
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'Widgets/smarty/libs/plugins/modifiercompiler.count_sentences.php')
-rw-r--r--Widgets/smarty/libs/plugins/modifiercompiler.count_sentences.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/Widgets/smarty/libs/plugins/modifiercompiler.count_sentences.php b/Widgets/smarty/libs/plugins/modifiercompiler.count_sentences.php
deleted file mode 100644
index f1ec5600..00000000
--- a/Widgets/smarty/libs/plugins/modifiercompiler.count_sentences.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Smarty plugin
- *
- * @package Smarty
- * @subpackage PluginsModifierCompiler
- */
-
-/**
- * Smarty count_sentences modifier plugin
- * Type: modifier<br>
- * Name: count_sentences
- * Purpose: count the number of sentences in a text
- *
- * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php
- * count_sentences (Smarty online manual)
- * @author Uwe Tews
- *
- * @param array $params parameters
- *
- * @return string with compiled code
- */
-function smarty_modifiercompiler_count_sentences($params)
-{
- // find periods, question marks, exclamation marks with a word before but not after.
- return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . Smarty::$_UTF8_MODIFIER . '", ' . $params[0] . ', $tmp)';
-}