Index: pathauto.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.module,v
retrieving revision 1.126.2.37
diff -u -p -r1.126.2.37 pathauto.module
--- pathauto.module	24 Sep 2010 22:35:50 -0000	1.126.2.37
+++ pathauto.module	17 Dec 2010 17:51:29 -0000
@@ -98,6 +98,22 @@ function pathauto_menu() {
 }
 
 /**
+ * Deprecated. Use module_load_include('inc', 'pathauto') instead.
+ */
+function _pathauto_include() {
+  module_load_include('inc', 'pathauto');
+
+  $backtrace = debug_backtrace();
+  watchdog('pathauto', "The !deprecated function has been deprecated and !replacement should be used instead. It was called from %file on line %line, function %function().", array(
+    '!deprecated' => __FUNCTION__,
+    '!replacement' => "module_load_include('inc', 'pathauto')",
+    '%file' => basename($backtrace[0]['file']),
+    '%line' => $backtrace[0]['line'],
+    '%function' => $backtrace[1]['function'],
+  ), WATCHDOG_NOTICE);
+}
+
+/**
  * Implements hook_token_list().
  */
 function pathauto_token_list($type = 'all') {
