Après
- Code: Tout sélectionner
private $php_ini;
ajouter
- Code: Tout sélectionner
private $phpbb_adm_relative_path;
Après
- Code: Tout sélectionner
$this->php_ini = $this->phpbb_container->get('php_ini');
ajouter
- Code: Tout sélectionner
$this->phpbb_adm_relative_path = $this->phpbb_container->get('path_helper')->get_adm_relative_path();
Remplacer
- Code: Tout sélectionner
// Update custom style for admin area
$this->template->set_custom_style(array(
array(
'name' => 'adm',
'ext_path' => 'adm/style/',
),
), array($phpbb_root_path . 'adm/style'));
par
- Code: Tout sélectionner
// Update custom style for admin area
$this->template->set_custom_style(array(
array(
'name' => str_replace('/', '', $this->phpbb_adm_relative_path),
'ext_path' => $this->phpbb_adm_relative_path . 'style/',
),
), array($phpbb_root_path . $this->phpbb_adm_relative_path . 'style'));
reste plus qu'à trouver les autres références à adm/
--- Edit ---
J'ai un doute sur le str_replace(). Si on y réfléchi c'est censé être le nom du style. Donc ce n'est pas à renomer.