diff options
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/assets/javascript/plupload.js | 8 | ||||
| -rw-r--r-- | phpBB/composer.lock | 40 | ||||
| -rw-r--r-- | phpBB/includes/functions_display.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/ucp/ucp_pm_viewmessage.php | 2 | ||||
| -rw-r--r-- | phpBB/language/en/mcp.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/auth/provider/apache.php | 4 | ||||
| -rw-r--r-- | phpBB/phpbb/di/extension/config.php | 28 | ||||
| -rw-r--r-- | phpBB/phpbb/version_helper.php | 2 | ||||
| -rw-r--r-- | phpBB/viewtopic.php | 2 | 
9 files changed, 52 insertions, 40 deletions
| diff --git a/phpBB/assets/javascript/plupload.js b/phpBB/assets/javascript/plupload.js index 5445e83e15..a58c71e64d 100644 --- a/phpBB/assets/javascript/plupload.js +++ b/phpBB/assets/javascript/plupload.js @@ -34,6 +34,14 @@ phpbb.plupload.initialize = function() {  		if (uploader.features.dragdrop) {  			$('#drag-n-drop-message').show();  		} + +		// Ensure "Add files" button position is correctly calculated. +		if ($('#attach-panel-multi').is(':visible')) { +			uploader.refresh(); +		} +		$('[data-subpanel="attach-panel"]').one('click', function() { +			uploader.refresh(); +		});  	});  }; diff --git a/phpBB/composer.lock b/phpBB/composer.lock index a7bb0addce..07ae59f863 100644 --- a/phpBB/composer.lock +++ b/phpBB/composer.lock @@ -703,21 +703,21 @@      "packages-dev": [          {              "name": "fabpot/goutte", -            "version": "v1.0.3", +            "version": "v1.0.7",              "source": {                  "type": "git", -                "url": "https://github.com/fabpot/Goutte.git", -                "reference": "75c9f23c4122caf4ea3e87a42a00b471366e707f" +                "url": "https://github.com/FriendsOfPHP/Goutte.git", +                "reference": "794b196e76bdd37b5155cdecbad311f0a3b07625"              },              "dist": {                  "type": "zip", -                "url": "https://api.github.com/repos/fabpot/Goutte/zipball/75c9f23c4122caf4ea3e87a42a00b471366e707f", -                "reference": "75c9f23c4122caf4ea3e87a42a00b471366e707f", +                "url": "https://api.github.com/repos/FriendsOfPHP/Goutte/zipball/794b196e76bdd37b5155cdecbad311f0a3b07625", +                "reference": "794b196e76bdd37b5155cdecbad311f0a3b07625",                  "shasum": ""              },              "require": {                  "ext-curl": "*", -                "guzzle/http": ">=3.0.5,<3.8-dev", +                "guzzle/http": "~3.1",                  "php": ">=5.3.0",                  "symfony/browser-kit": "~2.1",                  "symfony/css-selector": "~2.1", @@ -726,8 +726,8 @@                  "symfony/process": "~2.1"              },              "require-dev": { -                "guzzle/plugin-history": ">=3.0.5,<3.8-dev", -                "guzzle/plugin-mock": ">=3.0.5,<3.8-dev" +                "guzzle/plugin-history": "~3.1", +                "guzzle/plugin-mock": "~3.1"              },              "type": "application",              "extra": { @@ -747,9 +747,7 @@              "authors": [                  {                      "name": "Fabien Potencier", -                    "email": "fabien@symfony.com", -                    "homepage": "http://fabien.potencier.org", -                    "role": "Lead Developer" +                    "email": "fabien@symfony.com"                  }              ],              "description": "A simple PHP Web Scraper", @@ -757,7 +755,7 @@              "keywords": [                  "scraper"              ], -            "time": "2013-08-16 06:03:22" +            "time": "2014-10-09 15:52:51"          },          {              "name": "guzzle/common", @@ -1592,16 +1590,16 @@          },          {              "name": "sami/sami", -            "version": "v1.3", +            "version": "v1.4",              "source": {                  "type": "git", -                "url": "https://github.com/fabpot/Sami.git", -                "reference": "76f2ed80b3420f7e2f6dcd5b7218b5a5781f4110" +                "url": "https://github.com/FriendsOfPHP/Sami.git", +                "reference": "70f29c781f7bef30181c814b9471b2ceac694454"              },              "dist": {                  "type": "zip", -                "url": "https://api.github.com/repos/fabpot/Sami/zipball/76f2ed80b3420f7e2f6dcd5b7218b5a5781f4110", -                "reference": "76f2ed80b3420f7e2f6dcd5b7218b5a5781f4110", +                "url": "https://api.github.com/repos/FriendsOfPHP/Sami/zipball/70f29c781f7bef30181c814b9471b2ceac694454", +                "reference": "70f29c781f7bef30181c814b9471b2ceac694454",                  "shasum": ""              },              "require": { @@ -1622,7 +1620,7 @@              "type": "application",              "extra": {                  "branch-alias": { -                    "dev-master": "1.3-dev" +                    "dev-master": "1.4-dev"                  }              },              "autoload": { @@ -1637,9 +1635,7 @@              "authors": [                  {                      "name": "Fabien Potencier", -                    "email": "fabien@symfony.com", -                    "homepage": "http://fabien.potencier.org", -                    "role": "Lead Developer" +                    "email": "fabien@symfony.com"                  }              ],              "description": "Sami, an API documentation generator", @@ -1647,7 +1643,7 @@              "keywords": [                  "phpdoc"              ], -            "time": "2013-11-30 17:16:25" +            "time": "2014-06-25 11:24:03"          },          {              "name": "sebastian/comparator", diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 48c34ecfe6..31cf43e599 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1608,8 +1608,8 @@ function phpbb_show_profile($data, $user_notes_enabled = false, $warn_user_enabl  		'U_EMAIL'		=> $email,  		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $user_id) : '', -		'USER_JABBER'		=> $data['user_jabber'], -		'USER_JABBER_IMG'	=> ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '', +		'USER_JABBER'		=> ($config['jab_enable']) ? $data['user_jabber'] : '', +		'USER_JABBER_IMG'	=> ($config['jab_enable'] && $data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',  		'L_SEND_EMAIL_USER' => $user->lang('SEND_EMAIL_USER', $username),  		'L_CONTACT_USER'	=> $user->lang('CONTACT_USER', $username), diff --git a/phpBB/includes/ucp/ucp_pm_viewmessage.php b/phpBB/includes/ucp/ucp_pm_viewmessage.php index b2dc962f57..888c2e6825 100644 --- a/phpBB/includes/ucp/ucp_pm_viewmessage.php +++ b/phpBB/includes/ucp/ucp_pm_viewmessage.php @@ -197,7 +197,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)  		$u_pm = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $author_id);  	} -	if ($user_info['user_jabber'] && $auth->acl_get('u_sendim')) +	if ($config['jab_enable'] && $user_info['user_jabber'] && $auth->acl_get('u_sendim'))  	{  		$u_jabber = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $author_id);  	} diff --git a/phpBB/language/en/mcp.php b/phpBB/language/en/mcp.php index bc0fd03520..a961068657 100644 --- a/phpBB/language/en/mcp.php +++ b/phpBB/language/en/mcp.php @@ -237,7 +237,7 @@ $lang = array_merge($lang, array(  	'NOT_MODERATOR'					=> 'You are not a moderator of this forum.',  	'NO_DESTINATION_FORUM'			=> 'Please select a forum for destination.',  	'NO_DESTINATION_FORUM_FOUND'	=> 'There is no destination forum available.', -	'NO_ENTRIES'					=> 'No log entries for this period.', +	'NO_ENTRIES'					=> 'No log entries.',  	'NO_FEEDBACK'					=> 'No feedback exists for this user.',  	'NO_FINAL_TOPIC_SELECTED'		=> 'You have to select a destination topic for merging posts.',  	'NO_MATCHES_FOUND'				=> 'No matches found.', diff --git a/phpBB/phpbb/auth/provider/apache.php b/phpBB/phpbb/auth/provider/apache.php index 9137a77210..aa5bf64335 100644 --- a/phpBB/phpbb/auth/provider/apache.php +++ b/phpBB/phpbb/auth/provider/apache.php @@ -137,7 +137,7 @@ class apache extends \phpbb\auth\provider\base  			return array(  				'status'		=> LOGIN_SUCCESS_CREATE_PROFILE,  				'error_msg'		=> false, -				'user_row'		=> user_row_apache($php_auth_user, $php_auth_pw), +				'user_row'		=> $this->user_row($php_auth_user, $php_auth_pw),  			);  		} @@ -185,7 +185,7 @@ class apache extends \phpbb\auth\provider\base  			}  			// create the user if he does not exist yet -			user_add(user_row_apache($php_auth_user, $php_auth_pw)); +			user_add($this->user_row($php_auth_user, $php_auth_pw));  			$sql = 'SELECT *  				FROM ' . USERS_TABLE . " diff --git a/phpBB/phpbb/di/extension/config.php b/phpBB/phpbb/di/extension/config.php index 27ebc94bae..7984a783df 100644 --- a/phpBB/phpbb/di/extension/config.php +++ b/phpBB/phpbb/di/extension/config.php @@ -39,16 +39,24 @@ class config extends Extension  	*/  	public function load(array $config, ContainerBuilder $container)  	{ -		$container->setParameter('core.adm_relative_path', ($this->config_php->get('phpbb_adm_relative_path') ? $this->config_php->get('phpbb_adm_relative_path') : 'adm/')); -		$container->setParameter('core.table_prefix', $this->config_php->get('table_prefix')); -		$container->setParameter('cache.driver.class', $this->convert_30_acm_type($this->config_php->get('acm_type'))); -		$container->setParameter('dbal.driver.class', $this->config_php->convert_30_dbms_to_31($this->config_php->get('dbms'))); -		$container->setParameter('dbal.dbhost', $this->config_php->get('dbhost')); -		$container->setParameter('dbal.dbuser', $this->config_php->get('dbuser')); -		$container->setParameter('dbal.dbpasswd', $this->config_php->get('dbpasswd')); -		$container->setParameter('dbal.dbname', $this->config_php->get('dbname')); -		$container->setParameter('dbal.dbport', $this->config_php->get('dbport')); -		$container->setParameter('dbal.new_link', defined('PHPBB_DB_NEW_LINK') && PHPBB_DB_NEW_LINK); +		$parameters = array( +			'core.adm_relative_path'	=> $this->config_php->get('phpbb_adm_relative_path') ? $this->config_php->get('phpbb_adm_relative_path') : 'adm/', +			'core.table_prefix'			=> $this->config_php->get('table_prefix'), +			'cache.driver.class'		=> $this->convert_30_acm_type($this->config_php->get('acm_type')), +			'dbal.driver.class'			=> $this->config_php->convert_30_dbms_to_31($this->config_php->get('dbms')), +			'dbal.dbhost'				=> $this->config_php->get('dbhost'), +			'dbal.dbuser'				=> $this->config_php->get('dbuser'), +			'dbal.dbpasswd'				=> $this->config_php->get('dbpasswd'), +			'dbal.dbname'				=> $this->config_php->get('dbname'), +			'dbal.dbport'				=> $this->config_php->get('dbport'), +			'dbal.new_link'				=> defined('PHPBB_DB_NEW_LINK') && PHPBB_DB_NEW_LINK, +		); +		$parameter_bag = $container->getParameterBag(); + +		foreach ($parameters as $parameter => $value) +		{ +			$container->setParameter($parameter, $parameter_bag->escapeValue($value)); +		}  	}  	/** diff --git a/phpBB/phpbb/version_helper.php b/phpBB/phpbb/version_helper.php index 96386f6d04..c3c3602944 100644 --- a/phpBB/phpbb/version_helper.php +++ b/phpBB/phpbb/version_helper.php @@ -271,7 +271,7 @@ class version_helper  			{  				foreach ($branches as $branch => $branch_data)  				{ -					$info[$stability][$branch]['announcement'] = str_replace('&', '&', $branch_data['announcement']); +					$info[$stability][$branch]['announcement'] = (!empty($branch_data['announcement'])) ? str_replace('&', '&', $branch_data['announcement']) : '';  				}  			} diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 7bedcdfb49..30beea337a 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1247,7 +1247,7 @@ while ($row = $db->sql_fetchrow($result))  				'contact_user' 		=> $user->lang('CONTACT_USER', get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['username'])),  				'online'		=> false, -				'jabber'		=> ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '', +				'jabber'		=> ($config['jab_enable'] && $row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '',  				'search'		=> ($config['load_search'] && $auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',  				'author_full'		=> get_username_string('full', $poster_id, $row['username'], $row['user_colour']), | 
