Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: TextileRestricted
no
Offline
Re: TextileRestricted
Hehe well for future reference then:
Index: /Users/jm/Sites/projects/txp/site/textpattern/include/txp_plugin.php
===================================================================
--- a/textpattern/include/txp_plugin.php Sun Jun 01 11:43:05 2008 -0600
+++ b/textpattern/include/txp_plugin.php Mon Jun 02 06:23:54 2008 -0600
@@ -239,15 +239,13 @@
{
if(is_array($plugin)){
extract($plugin);
- $source = '';
if (isset($help_raw) && empty($plugin['allow_html_help'])) {
include_once txpath.'/lib/classTextile.php';
$textile = new Textile();
- $help_source = $textile->TextileRestricted($help_raw, 0, 0);
- } else {
- $help_source= highlight_string($help, true);
+ $help = $textile->TextileThis($help_raw, false, false, true);
}
- $source.= highlight_string('<?php'.$plugin['code'].'?>', true);
+ $help_source= highlight_string($help, true);
+ $source = highlight_string('<?php'.$plugin['code'].'?>', true);
$sub = fInput('submit','',gTxt('install'),'publish');
pagetop(gTxt('edit_plugins'));
@@ -302,7 +300,7 @@
// default: help is in Textile format
include_once txpath.'/lib/classTextile.php';
$textile = new Textile();
- $help = $textile->TextileRestricted($help_raw, 0, 0);
+ $help = $textile->TextileThis($help_raw, false, false, true);
}
if ($exists) {
The conditional isn’t needed, and $source
doesn’t need to be initialized with an empty string.
Last edited by jm (2008-06-02 15:55:17)
Offline