Index: textile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textile/textile.module,v
retrieving revision 1.16
diff -u -F^f -r1.16 textile.module
--- textile.module	21 Mar 2005 16:06:59 -0000	1.16
+++ textile.module	29 Sep 2005 21:37:33 -0000
@@ -47,8 +47,6 @@
 // update automatically
 _textile_install();
 
-require_once(dirname(__FILE__) . '/textilephp/Textile.php');
-
 /********************************************************************
  * Drupal Hooks
  ********************************************************************/
@@ -480,40 +478,9 @@ function _textile_process($in_matches) {
   static $s_textile = NULL;
 
   if ($s_textile === NULL) {
+    require_once drupal_get_path('module', 'textile') .'/DrupalTextile.php';
     $s_textile = new DrupalTextile(array('charset' => 'UTF-8', 'char_encoding' => 0, 'smarty_mode' => DEFAULT_OPERATION_MODE));
   }
 
   return $s_textile->process($in_matches[1]);
 } // function _textile_process
-
-/**
- * DrupalTextile is a subclass of MTLikeTextile that properly handles
- * Textile footnote URL fragments in a Drupal context.
- */
-class DrupalTextile extends MTLikeTextile {
-  /**
-   * Creates a new DrupalTextile object using the provided options.
-   *
-   * @param $in_options
-   *   The <code>array</code> specifying the options for this object.
-   */
-  function DrupalTextile($in_options = array()) {
-    parent::MTLikeTextile($in_options);
-  } // function DrupalTextile
-
-  /**
-   * Processes the provided Textile-formatted text, properly handling
-   * URL fragments in a Drupal context.
-   *
-   * @param $in_string
-   *   The <code>string</code> specifying the text to be processed.
-   *
-   * @return
-   *   A <code>string</code> containing the processed text.
-   */
-  function process($in_string) {
-    return preg_replace('{(<a href=")(#[^"]*")}', '$1' . request_uri() . '$2', parent::process($in_string));
-  } // function process
-} // class DrupalTextile
-
-?>
