Commit 0ae23b99 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug 1591304: Undefined $view in is_themeable()"

parents 2e3142d2 8203904b
......@@ -5999,7 +5999,7 @@ class View {
function is_themeable() {
$unthemable_types = array('grouphomepage', 'dashboard');
return !$view->get('template') && !in_array($this->type, $unthemable_types);
return !$this->get('template') && !in_array($this->type, $unthemable_types);
@javascript @core @core_view
Feature: Allow user themes on pages
In order to allow a user theme on a page
As an admin
I need to be able to activate Users can choose page themes setting
Scenario: Activate page themes setting and edit a page (Bug 1591304)
Given I log in as "admin" with password "Kupuhipa1"
And I follow "Administration"
# I set the page themes option
And I follow "Configure site"
And I expand the section "User settings"
And I enable the switch "Users can choose page themes"
And I press "Update site options"
# Now edit a page
And I follow "Return to site"
And I follow "Portfolio"
And I press "Create page"
And I press "Save"
And I follow "Text"
And I press "Add"
And I press "Save"
\ No newline at end of file
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