projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release plat/al core v1.1.5
[platal.git]
/
plugins
/
modifier.miniwiki.php
diff --git
a/plugins/modifier.miniwiki.php
b/plugins/modifier.miniwiki.php
index
aef58da
..
82b9ea9
100644
(file)
--- a/
plugins/modifier.miniwiki.php
+++ b/
plugins/modifier.miniwiki.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
08
Polytechnique.org *
+ * Copyright (C) 2003-20
11
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-19,11
+19,13
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once 'platal.inc.php';
-
-function smarty_modifier_miniwiki($string, $format = 'no_title')
+function smarty_modifier_miniwiki($string, $format = 'no_title', $type = 'html')
{
{
- return MiniWiki::wikiToHTML($string, $format == 'title');
+ if ($type == 'html') {
+ return MiniWiki::wikiToHTML($string, $format == 'title');
+ } else {
+ return MiniWiki::wikiToText($string, false, 0, 80, $format == 'title');
+ }
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: