[pmwiki-users] Upgrade issue, [[para:SomePage]] not converted

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 8 14:23:32 CST 2005


On Tue, Feb 08, 2005 at 08:26:33PM +0100, chr at home.se wrote:
> The 'teaser' stuff from John Rankin isn't upgraded properly, i.e.
> 	[[para:Group/Page]]
> should be converted into
> 	(:para:Group/Page:)

Should it be (:para:Group/Page:)  or  (:para Group/Page:) ?

> How can I make this happen?  (I've used this directive a lot...)

Try:

   include_once('scripts/compat1x.php');
   $Compat1x = array_merge(
      array('/\\[\\[para:(.*?)\\]\\]' => '(:para:$1:)'),
      $Compat1x);

If that works, I'll add this entry into the official compat1x.php script
so it'll be there for others who want to convert this markup.

Pm



More information about the pmwiki-users mailing list