Skip to content

Instantly share code, notes, and snippets.

<?php
/**
*
* @package migration
* @copyright (c) 2014 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
*
*/
namespace phpbb\db\migration\data\v310;
$files = $finder
->extension_directory("/")
->find_from_paths(array('/' => $path));
foreach ($files as $file)
{
$migrations[$file['path'] . $file['filename']] = '';
}
$migrations = $finder->get_classes_from_files($migrations);
$sql = 'SELECT post_id, post_visibility
FROM ' . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND post_attachment = 1";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$post_visibility[(int) $row['post_id']] = (int) $row['post_visibility'];
}
diff --git a/phpBB/config/profilefields.yml b/phpBB/config/profilefields.yml
index 5a861a4..d12a1f8 100644
--- a/phpBB/config/profilefields.yml
+++ b/phpBB/config/profilefields.yml
@@ -80,3 +80,12 @@ services:
- @user
tags:
- { name: profilefield.type }
+
+ profilefields.type.url:
1 of 1 user gives information
1 of 3 users gives information
1 of 5 users gives information
3 of 1 user gives information
3 of 3 users give information
3 of 5 users give information
5 of 1 user gives information
5 of 3 users give information
5 of 5 users give information
<?php
/**
*
* @package phpBB3
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
===================================================================
--- phpBB/includes/functions.php (revision 2eaf045405bf0d0e4b9ed148de611c42764cf90f)
+++ phpBB/includes/functions.php (revision )
@@ -2210,9 +2210,9 @@
*/
function generate_board_url($without_script_path = false)
{
- static $board_url, $full_board_url;
+ static $static_board_url, $static_full_board_url;
public function assign_block_vars_array($blockname, array $block_vars_array)
{
foreach ($block_vars_array as $vararray)
{
$this->assign_block_vars($blockname, $vararray);
}
return $this;
}
<?php
/**
*
* @package testing
* @copyright (c) 2014 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
crizzo_imprint:
pattern: /impressum
defaults: { _controller: crizzo.imprint.controller:base }