From fd854ea105a56e0ae9d78f456d0b1a2a0efc3327 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 Sep 2005 19:12:19 +0000 Subject: [PATCH] - Patch #30935 by m3avrck: generate width and height attributes for the theme screenshots on the theme administration page. --- modules/system.module | 4 ++-- modules/system/system.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/system.module b/modules/system.module index 3c6f03edfe2..1168a122346 100644 --- a/modules/system.module +++ b/modules/system.module @@ -137,7 +137,7 @@ function system_user($type, $edit, &$user, $category = NULL) { // Screenshot column. $screenshot = dirname($value->filename) .'/screenshot.png'; - $row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot'), false) : t('no screenshot'); + $row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot')) : t('no screenshot'); // Information field. $row[] = ''. $value->name .''; @@ -476,7 +476,7 @@ function system_theme_listing() { $row = array(); // Screenshot column. - $row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot'), false) : t('no screenshot'); + $row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot')) : t('no screenshot'); // Information field. $row[] = "$info->name
" . dirname($info->filename) . ''; diff --git a/modules/system/system.module b/modules/system/system.module index 3c6f03edfe2..1168a122346 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -137,7 +137,7 @@ function system_user($type, $edit, &$user, $category = NULL) { // Screenshot column. $screenshot = dirname($value->filename) .'/screenshot.png'; - $row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot'), false) : t('no screenshot'); + $row[] = file_exists($screenshot) ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $value->name)), '', array('class' => 'screenshot')) : t('no screenshot'); // Information field. $row[] = ''. $value->name .''; @@ -476,7 +476,7 @@ function system_theme_listing() { $row = array(); // Screenshot column. - $row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot'), false) : t('no screenshot'); + $row[] = file_exists($info->screenshot) ? theme('image', $info->screenshot, t('Screenshot for %theme theme', array('%theme' => $info->name)), '', array('class' => 'screenshot')) : t('no screenshot'); // Information field. $row[] = "$info->name
" . dirname($info->filename) . '';