Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thedavidmeister’s picture

Issue tags: +Novice
markie’s picture

Status: Active » Needs review
FileSize
0 bytes

4 files altered.

markie’s picture

Assigned: Unassigned » markie

forgot to call dibs.

markie’s picture

and.. it tends to help to save the files BEFORE doing your git diff.. Novice doesn't even scratch the surface.

Status: Needs review » Needs work

The last submitted patch, drupal_remove_theme_core_lib-2008954-4.patch, failed testing.

thedavidmeister’s picture

-      $content = theme('maintenance_page', array('content' => filter_xss_admin(t(config('system.maintenance')->get('message'), array('@site' => config('system.site')->get('name'))))));
+      $build = array(
+        '#theme' => 'maintenance_page',
+        'content' => filter_xss_admin(
+          t(config('system.maintenance')->get('message'), array('@site' => config('system.site')->get('name')))
+        ),
+      );
+      $content = drupal_render($build);

You missed the # for #content.

markie’s picture

Status: Needs work » Needs review
FileSize
4.08 KB

updated #content

thedavidmeister’s picture

Status: Needs review » Needs work

A minor styling thing, but we're only using $build when using #theme would conflict with another variable already in the local scope. Check the notes on the parent issue for more details :)

markie’s picture

Status: Needs work » Needs review
FileSize
4.29 KB

updated per request

thedavidmeister’s picture

Status: Needs review » Reviewed & tested by the community

this looks fine to me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 5d83ca5 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.