diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc
index 6177dfd..7a3f039 100644
--- a/core/modules/system/system.admin.inc
+++ b/core/modules/system/system.admin.inc
@@ -1690,7 +1690,15 @@ function theme_system_themes_page($variables) {
foreach ($theme_groups[$state] as $theme) {
// Theme the screenshot.
- $screenshot = $theme->screenshot ? theme('image', $theme->screenshot) : '
' . t('no screenshot') . '
';
+ if ($theme->screenshot) {
+ $image = array('#theme' => 'image');
+ foreach ($theme->screenshot as $key => $value) {
+ $image['#' . $key] = $value;
+ }
+ $screenshot = drupal_render($image);
+ }else {
+ $screenshot = '' . t('no screenshot') . '
';
+ }
// Localize the theme description.
$description = t($theme->info['description']);
@@ -1718,7 +1726,14 @@ function theme_system_themes_page($variables) {
$output .= '' . t('This theme requires the theme engine @theme_engine to operate correctly.', array('@theme_engine' => $theme->info['engine'])) . '
';
}
else {
- $output .= theme('links', array('links' => $theme->operations, 'attributes' => array('class' => array('operations', 'clearfix'))));
+ $links = array(
+ '#theme' => 'links',
+ '#links' => $theme->operations,
+ '#attributes' => array(
+ 'class' => array('operations', 'clearfix')
+ )
+ );
+ $output .= drupal_render($links);
}
$output .= '';
}