Index: sites/all/modules/pathauto/pathauto.module
===================================================================
--- sites/all/modules/pathauto/pathauto.module	(revision 149)
+++ sites/all/modules/pathauto/pathauto.module	(working copy)
@@ -211,11 +211,11 @@
  * Implementation of hook_nodeapi().
  */
 function pathauto_nodeapi(&$node, $op, $teaser, $page) {
-  _pathauto_include();
   if (module_exists('path')) {
     switch ($op) {
       case 'insert':
       case 'update':
+        _pathauto_include();
         // Get the specific pattern or the default
         $pattern = trim(variable_get('pathauto_node_'. $node->type .'_pattern', FALSE));
         if (!$pattern) {
@@ -311,12 +311,12 @@
  * Implementation of hook_taxonomy().
  */
 function pathauto_taxonomy($op, $type, $object = NULL) {
-  _pathauto_include();
   switch ($type) {
     case 'term':
       switch ($op) {
         case 'insert':
         case 'update':
+          _pathauto_include();
           // Use the category info to automatically create an alias
           $category = (object) $object;
           if ($category->name) {
@@ -353,10 +353,10 @@
  * Implementation of hook_user() for users, trackers, and blogs.
  */
 function pathauto_user($op, &$edit, &$user, $category = FALSE) {
-  _pathauto_include();
   switch ($op) {
     case 'insert':
     case 'update':
+      _pathauto_include();
       // Use the username to automatically create an alias
       $pathauto_user = (object) array_merge((array) $user, $edit);
       if ($user->name) {
