Index: s5_textfield.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/s5/s5_textfield.module,v
retrieving revision 1.1.4.3
diff -u -F^f -r1.1.4.3 s5_textfield.module
--- s5_textfield.module	18 Aug 2008 23:28:16 -0000	1.1.4.3
+++ s5_textfield.module	9 Feb 2009 11:29:51 -0000
@@ -30,7 +30,7 @@ function s5_textfield_menu() {
     'access callback' => 'user_access',
     'access arguments' => array('administer site configuration'),
   );
-  $items['node/%/s5'] = array(
+  $items['node/%node/s5'] = array(
     'title'    => t('S5 presentation'),
     'type'     => MENU_CALLBACK,
     'page callback' => 's5_textfield_export',
@@ -99,15 +99,13 @@ function s5_textfield_settings_form() {
 /**
  * Export menu handler.
  */
-function s5_textfield_export($nid = 0, $field = 'body') {
+function s5_textfield_export($node = NULL, $field = 'body') {
   global $base_url;
-  $nid = (int) $nid;
-  $node = node_load($nid);
 
   $node_type = in_array($node->type, variable_get('s5_textfield_node_types_enabled', array()), TRUE);
   if (!$node_type) {
     // This node isn't configured for s5, send them back to the regular version
-    drupal_goto('node/'. $nid);
+    drupal_goto('node/'. $node->nid);
   }
 
   // Adapted (simplified) version of node_view for Drupal 5.x
