aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-11-10 01:10:42 +0000
committerrvelices <rv-github@modusoptimus.com>2006-11-10 01:10:42 +0000
commit724671b669d5a0e5a2ffb684ffd4534584c52113 (patch)
tree0bbe2f62f2a325ee0060627e032c8b99b0b98341 /admin
parente5e776a263ba63407893a28df379f2ac8152680c (diff)
git-svn-id: http://piwigo.org/svn/trunk@1604 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_plugins.inc.php2
-rw-r--r--admin/rating.php11
2 files changed, 3 insertions, 10 deletions
diff --git a/admin/include/functions_plugins.inc.php b/admin/include/functions_plugins.inc.php
index 652aa7e19..45f3c734c 100644
--- a/admin/include/functions_plugins.inc.php
+++ b/admin/include/functions_plugins.inc.php
@@ -41,7 +41,7 @@ function get_fs_plugins()
and file_exists($path.'/main.inc.php')
)
{
- $plugin = array('name'=>'?', 'version'=>'0', 'uri'=>'', 'description'=>'');
+ $plugin = array('name'=>$file, 'version'=>'0', 'uri'=>'', 'description'=>'');
$plg_data = implode( '', file($path.'/main.inc.php') );
if ( preg_match("|Plugin Name: (.*)|i", $plg_data, $val) )
diff --git a/admin/rating.php b/admin/rating.php
index 01a93aecd..9007faa8d 100644
--- a/admin/rating.php
+++ b/admin/rating.php
@@ -212,22 +212,15 @@ SELECT i.id,
$images = array();
$result = pwg_query($query);
-while ($row = mysql_fetch_array($result))
+while ($row = mysql_fetch_assoc($result))
{
array_push($images, $row);
}
foreach ($images as $image)
{
- $thumbnail_src = get_thumbnail_src($image['path'], $image['tn_ext']);
+ $thumbnail_src = get_thumbnail_url($image);
- /*$image_url = make_picture_url(
- array(
- 'category' => $image['storage_category_id'],
- 'image_id' => $image['id'],
- 'image_file' => $image['file'],
- )
- );*/
$image_url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify'.
'&amp;image_id='.$image['id'];