Commit ad902620 authored by catch's avatar catch

Issue #3016968 by alexpott: Remove weight public property from theme extensions

parent ab431767
......@@ -130,9 +130,8 @@ protected function doList() {
if (!empty($theme->info['base theme'])) {
$sub_themes[] = $name;
}
// Add weight and status.
// Add status.
$theme->status = (int) isset($this->installedThemes[$name]);
$theme->weight = isset($this->installedThemes[$name]) ? $this->installedThemes[$name] : 0;
}
// Build dependencies.
......
......@@ -33,7 +33,6 @@ public function testGetlist() {
$extensions = $theme_extension_list->getList();
$this->assertArrayHasKey('test_theme', $extensions);
$this->assertEquals(0, $extensions['test_theme']->weight);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment