From 20c7b79a86b3fa1f0424acd39fb9c6ae7262a02f Mon Sep 17 00:00:00 2001
From: Stein Magne Bjorklund <steinmb@smbjorklund.com>
Date: Tue, 14 Jun 2011 00:48:09 +0200
Subject: [PATCH 21/21] Improve the way files are included, and follow
 http://drupal.org/node/224333#absolute_includes
 guidelines. 	modified:   media_vimeo.module

---
 media_vimeo.module |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/media_vimeo.module b/media_vimeo.module
index fab7869..953402c 100644
--- a/media_vimeo.module
+++ b/media_vimeo.module
@@ -15,16 +15,17 @@
  */
 
 // A registry of variable_get defaults.
-include_once('includes/media_vimeo.variables.inc');
+include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'media_vimeo') . '/includes/media_vimeo.variables.inc';
 
 // Hooks and callbacks for integrating with Styles module for display.
 // @todo Can save a little overhead for people without Styles module by wrapping
 //   this inside a module_exists('styles'). However, is that safe to do in
 //   global context? If not, is there any down side to doing it in hook_init()?
-include_once('includes/media_vimeo.styles.inc');
+include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'media_vimeo') . '/includes/media_vimeo.styles.inc';
+
 
 // Hooks and callbacks for integrating with File Entity module for display.
-include_once('includes/media_vimeo.formatters.inc');
+include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'media_vimeo') . '/includes/media_vimeo.formatters.inc';
 
 /**
  * Implements hook_media_internet_providers().
-- 
1.7.4.4

