Commit b5fdd127 authored by yched's avatar yched

small optimization on includes (hint from moshe in #102526)

parent cc5ebf9c
......@@ -9,12 +9,12 @@ define('CONTENT_DB_STORAGE_PER_FIELD', 0);
define('CONTENT_DB_STORAGE_PER_CONTENT_TYPE', 1);
if (module_exist('views')) {
include_once(drupal_get_path('module', 'content') .'/content_views.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content_views.inc');
}
if (module_exist('pathauto')) {
include_once(drupal_get_path('module', 'content') .'/content_pathauto.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content_pathauto.inc');
}
include_once(drupal_get_path('module', 'content') .'/content_crud.inc');
include_once('./'.drupal_get_path('module', 'content') .'/content_crud.inc');
/**
* Implementation of hook_help().
......@@ -60,7 +60,7 @@ function content_menu($may_cache) {
// Only include administrative callbacks if we are viewing an admin page.
if (arg(0) == 'admin') {
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
}
if ($may_cache) {
......
......@@ -58,8 +58,8 @@ function nodereference_update_2() {
function nodereference_update_3() {
$ret = array();
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content.module');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$fields = content_fields();
......
......@@ -76,8 +76,8 @@ function number_update_3() {
function number_update_4() {
$ret = array();
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content.module');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$fields = content_fields();
......@@ -123,8 +123,8 @@ function number_update_4() {
function number_update_5() {
$ret = array();
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content.module');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$fields = content_fields();
......
......@@ -85,8 +85,8 @@ function text_update_3() {
function text_update_4() {
$ret = array();
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content.module');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$fields = content_fields();
......
......@@ -58,8 +58,8 @@ function userreference_update_2() {
function userreference_update_3() {
$ret = array();
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content.module');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$fields = content_fields();
......@@ -93,8 +93,8 @@ function userreference_update_3() {
function userreference_update_4() {
$ret = array();
include_once(drupal_get_path('module', 'content') .'/content.module');
include_once(drupal_get_path('module', 'content') .'/content_admin.inc');
include_once('./'. drupal_get_path('module', 'content') .'/content.module');
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$fields = content_fields();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment