diff --git web/sites/all/modules/contrib/dialog/example/dialog_example.module web/sites/all/modules/contrib/dialog/example/dialog_example.module
index 3527b15..a3a1691 100644
--- web/sites/all/modules/contrib/dialog/example/dialog_example.module
+++ web/sites/all/modules/contrib/dialog/example/dialog_example.module
@@ -71,7 +71,7 @@ function dialog_example_ajax_callback($ajax) {
 
     $commands = array();
     $commands[] = dialog_command_display($content, $options);
-    ajax_render($commands);
+    ajax_deliver(array('#type' => 'ajax', '#commands' => $commands));
   }
   else {
     // If the user isn't using JavaScript, just show the normal page.

