From d510632e9f07cec9ac3de3b5dafc56bd58c81b8a Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 7 Nov 2006 12:37:04 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@804 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-settings.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'wp-settings.php') diff --git a/wp-settings.php b/wp-settings.php index 54a24df..d82c124 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -90,8 +90,14 @@ if ( defined('WP_CACHE') ) require (ABSPATH . 'wp-content/advanced-cache.php'); define('WPINC', 'wp-includes'); -if ( !defined('LANGDIR') ) - define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash + +if ( !defined('LANGDIR') ) { + if ( file_exists(ABSPATH . 'wp-content/languages') && @is_dir(ABSPATH . 'wp-content/languages') ) + define('LANGDIR', 'wp-content/languages'); // no leading slash, no trailing slash + else + define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash +} + if ( !defined('PLUGINDIR') ) define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash if ( file_exists(ABSPATH . 'wp-content/db.php') ) -- cgit