mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/10756] Fixing variable declarations in style and template classes
Fixing variable declaration, removing function from template locator that does not belong there PHPBB3-10756
This commit is contained in:
parent
d91abbb146
commit
ed9a58a6cc
@ -22,28 +22,33 @@ if (!defined('IN_PHPBB'))
|
|||||||
class phpbb_style
|
class phpbb_style
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var phpbb_template Template class.
|
* Template class.
|
||||||
* Handles everything related to templates.
|
* Handles everything related to templates.
|
||||||
|
* @var phpbb_template
|
||||||
*/
|
*/
|
||||||
private $template;
|
private $template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string phpBB root path
|
* phpBB root path
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $phpbb_root_path;
|
private $phpbb_root_path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var phpEx PHP file extension
|
* PHP file extension
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $phpEx;
|
private $phpEx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var phpbb_config phpBB config instance
|
* phpBB config instance
|
||||||
|
* @var phpbb_config
|
||||||
*/
|
*/
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var user current user
|
* Current user
|
||||||
|
* @var phpbb_user
|
||||||
*/
|
*/
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
|
@ -35,18 +35,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
*/
|
*/
|
||||||
interface phpbb_template_locator
|
interface phpbb_template_locator
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Sets the list of style paths
|
|
||||||
*
|
|
||||||
* These paths will be searched for style files in the provided order.
|
|
||||||
* Paths may be outside of phpBB, but templates loaded from these paths
|
|
||||||
* will still be cached.
|
|
||||||
*
|
|
||||||
* @param array $style_paths An array of paths to style directories
|
|
||||||
* @return null
|
|
||||||
*/
|
|
||||||
public function set_paths($style_paths);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the template filenames for handles. $filename_array
|
* Sets the template filenames for handles. $filename_array
|
||||||
* should be a hash of handle => filename pairs.
|
* should be a hash of handle => filename pairs.
|
||||||
|
@ -32,33 +32,39 @@ if (!defined('IN_PHPBB'))
|
|||||||
class phpbb_template
|
class phpbb_template
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var phpbb_template_context Template context.
|
* Template context.
|
||||||
* Stores template data used during template rendering.
|
* Stores template data used during template rendering.
|
||||||
|
* @var phpbb_template_context
|
||||||
*/
|
*/
|
||||||
public $context;
|
public $context;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Path of the cache directory for the template
|
* Path of the cache directory for the template
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $cachepath = '';
|
public $cachepath = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string phpBB root path
|
* phpBB root path
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $phpbb_root_path;
|
private $phpbb_root_path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var phpEx PHP file extension
|
* PHP file extension
|
||||||
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $phpEx;
|
private $phpEx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var phpbb_config phpBB config instance
|
* phpBB config instance
|
||||||
|
* @var phpbb_config
|
||||||
*/
|
*/
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var user current user
|
* Current user
|
||||||
|
* @var phpbb_user
|
||||||
*/
|
*/
|
||||||
private $user;
|
private $user;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user