Merge remote-tracking branch 'github-cyberalien/ticket/10762' into develop

* github-cyberalien/ticket/10762:
  [ticket/10762] Check for phpbb_version when installing style
  [ticket/10762] Changing version format in style.cfg
This commit is contained in:
Nils Adermann 2012-04-19 02:39:54 +02:00
commit 3d87ab79ca
3 changed files with 5 additions and 3 deletions

View file

@ -1056,7 +1056,7 @@ class acp_styles
*/
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');
// Check if it is a valid file

View file

@ -18,7 +18,8 @@
# General Information about this style
name = prosilver
copyright = © phpBB Group, 2007
version = 3.1.0-dev
style_version = 3.1.0-dev
phpbb_version = 3.1.0-dev
# Defining a different template bitfield
# template_bitfield = lNg=

View file

@ -18,7 +18,8 @@
# General Information about this style
name = subsilver2
copyright = © 2005 phpBB Group
version = 3.1.0-dev
style_version = 3.1.0-dev
phpbb_version = 3.1.0-dev
# Defining a different template bitfield
# template_bitfield = lNg=