[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:
Vjacheslav Trushkin 2012-04-04 13:13:12 +03:00
parent e769e0f723
commit bb62804407

View file

@ -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