mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10762] Check for phpbb_version when installing style
Check if phpbb_version exists when installing style. Do not warn users about installing outdated styles yet, that part of acp_styles will be changed in different branch. PHPBB3-10762
This commit is contained in:
parent
e769e0f723
commit
bb62804407
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ class acp_styles
|
||||||
*/
|
*/
|
||||||
protected function read_style_cfg($dir)
|
protected function read_style_cfg($dir)
|
||||||
{
|
{
|
||||||
static $required = array('name', 'version', 'copyright');
|
static $required = array('name', 'phpbb_version', 'copyright');
|
||||||
$cfg = parse_cfg_file($this->styles_path . $dir . '/style.cfg');
|
$cfg = parse_cfg_file($this->styles_path . $dir . '/style.cfg');
|
||||||
|
|
||||||
// Check if it is a valid file
|
// Check if it is a valid file
|
||||||
|
|
Loading…
Add table
Reference in a new issue