summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/locale.module12
-rw-r--r--modules/locale/locale.module12
-rw-r--r--modules/system.module4
-rw-r--r--modules/system/system.module4
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
6 files changed, 18 insertions, 18 deletions
diff --git a/modules/locale.module b/modules/locale.module
index a59bd6c7b..58deceb63 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -258,7 +258,7 @@ function locale_get_plural($count) {
* Page handler for the language management screen
*/
function locale_admin_manage() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$edit = &$_POST['edit'];
if ($_POST['op'] == t('Save configuration')) {
@@ -290,7 +290,7 @@ function locale_admin_manage() {
* User interface for the language deletion confirmation screen
*/
function locale_admin_manage_delete_screen() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$langcode = arg(4);
$edit = $_POST['edit'];
@@ -334,7 +334,7 @@ function locale_admin_manage_delete_screen() {
* Page handler for the language addition screen
*/
function locale_admin_manage_add() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$edit = &$_POST['edit'];
$isocodes = _locale_get_iso639_list();
@@ -374,7 +374,7 @@ function locale_admin_manage_add() {
* Page handler for the translation import screen
*/
function locale_admin_import() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$edit = &$_POST['edit'];
switch ($_POST['op']) {
case t('Import'):
@@ -408,7 +408,7 @@ function locale_admin_import() {
* Page handler for the translation export screen
*/
function locale_admin_export() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
switch ($_POST['op']) {
case t('Export'):
_locale_export_po($_POST['edit']['langcode']);
@@ -425,7 +425,7 @@ function locale_admin_export() {
* Page handler for the string search and administration screen
*/
function locale_admin_string() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$op = ($_POST['op'] ? $_POST['op'] : arg(3));
$edit =& $_POST['edit'];
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index a59bd6c7b..58deceb63 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -258,7 +258,7 @@ function locale_get_plural($count) {
* Page handler for the language management screen
*/
function locale_admin_manage() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$edit = &$_POST['edit'];
if ($_POST['op'] == t('Save configuration')) {
@@ -290,7 +290,7 @@ function locale_admin_manage() {
* User interface for the language deletion confirmation screen
*/
function locale_admin_manage_delete_screen() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$langcode = arg(4);
$edit = $_POST['edit'];
@@ -334,7 +334,7 @@ function locale_admin_manage_delete_screen() {
* Page handler for the language addition screen
*/
function locale_admin_manage_add() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$edit = &$_POST['edit'];
$isocodes = _locale_get_iso639_list();
@@ -374,7 +374,7 @@ function locale_admin_manage_add() {
* Page handler for the translation import screen
*/
function locale_admin_import() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$edit = &$_POST['edit'];
switch ($_POST['op']) {
case t('Import'):
@@ -408,7 +408,7 @@ function locale_admin_import() {
* Page handler for the translation export screen
*/
function locale_admin_export() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
switch ($_POST['op']) {
case t('Export'):
_locale_export_po($_POST['edit']['langcode']);
@@ -425,7 +425,7 @@ function locale_admin_export() {
* Page handler for the string search and administration screen
*/
function locale_admin_string() {
- include_once 'includes/locale.inc';
+ include_once './includes/locale.inc';
$op = ($_POST['op'] ? $_POST['op'] : arg(3));
$edit =& $_POST['edit'];
diff --git a/modules/system.module b/modules/system.module
index e414d77b0..b0c22586c 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -392,13 +392,13 @@ function system_region_list($theme_key) {
return $list[$theme_key];
}
if (file_exists($file = dirname($theme->filename) .'/' . $theme_key . '.theme')) {
- include_once($file);
+ include_once "./$file";
}
$regions = function_exists($theme_key . '_regions') ? call_user_func($theme_key . '_regions') : array();
if (strpos($theme->description, '.engine')) {
// File is a template; include its engine's regions.
- include_once($theme->description);
+ include_once './' . $theme->description;
$theme_engine = basename($theme->description, '.engine');
$engine_regions = function_exists($theme_engine . '_regions') ? call_user_func($theme_engine . '_regions') : array();
$regions = array_merge($engine_regions, $regions);
diff --git a/modules/system/system.module b/modules/system/system.module
index e414d77b0..b0c22586c 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -392,13 +392,13 @@ function system_region_list($theme_key) {
return $list[$theme_key];
}
if (file_exists($file = dirname($theme->filename) .'/' . $theme_key . '.theme')) {
- include_once($file);
+ include_once "./$file";
}
$regions = function_exists($theme_key . '_regions') ? call_user_func($theme_key . '_regions') : array();
if (strpos($theme->description, '.engine')) {
// File is a template; include its engine's regions.
- include_once($theme->description);
+ include_once './' . $theme->description;
$theme_engine = basename($theme->description, '.engine');
$engine_regions = function_exists($theme_engine . '_regions') ? call_user_func($theme_engine . '_regions') : array();
$regions = array_merge($engine_regions, $regions);
diff --git a/modules/user.module b/modules/user.module
index 7d6efb7f0..fcfa6c924 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -370,7 +370,7 @@ function user_is_blocked($name) {
*/
function user_mail($mail, $subject, $message, $header) {
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
- include_once variable_get('smtp_library', '');
+ include_once './' . variable_get('smtp_library', '');
return user_mail_wrapper($mail, $subject, $message, $header);
}
else {
diff --git a/modules/user/user.module b/modules/user/user.module
index 7d6efb7f0..fcfa6c924 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -370,7 +370,7 @@ function user_is_blocked($name) {
*/
function user_mail($mail, $subject, $message, $header) {
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
- include_once variable_get('smtp_library', '');
+ include_once './' . variable_get('smtp_library', '');
return user_mail_wrapper($mail, $subject, $message, $header);
}
else {