wok rev 10924

wikiss/wkp_Upload: fix data links
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 11 23:01:53 2011 +0200 (2011-08-11)
parents d183de36d647
children 6af9dc0d1c19
files wikiss/stuff/plugins/wkp_Upload.php
line diff
     1.1 --- a/wikiss/stuff/plugins/wkp_Upload.php	Wed Aug 10 13:59:49 2011 +0000
     1.2 +++ b/wikiss/stuff/plugins/wkp_Upload.php	Thu Aug 11 23:01:53 2011 +0200
     1.3 @@ -94,6 +94,13 @@
     1.4        }
     1.5        return TRUE;
     1.6     } // action
     1.7 +
     1.8 +   function formatEnd()
     1.9 +   {
    1.10 +      global $CONTENT;
    1.11 +      $CONTENT = preg_replace('#\[(.*)|(pages/.*)\]#','<a href="$1">$2</a>',$CONTENT);
    1.12 +      $CONTENT = preg_replace('#\[(pages/.*)\]#','<a href="$1">$1</a>',$CONTENT);
    1.13 +   }
    1.14  }
    1.15  
    1.16  ?>