Changeset 11839 for trunk/picture.php


Ignore:
Timestamp:
Jul 26, 2011, 9:04:50 PM (13 years ago)
Author:
rvelices
Message:

feature 2384: improve average rating calculation (final)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r10970 r11839  
    314314    {
    315315      include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
    316       rate_picture(
    317         $page['image_id'],
    318         isset($_POST['rate']) ? $_POST['rate'] : $_GET['rate']
    319         );
     316      rate_picture($page['image_id'], $_POST['rate']);
    320317      redirect($url_self);
    321318    }
     
    323320    {
    324321      check_pwg_token();
    325 
    326322      include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
    327 
    328323      check_input_parameter('comment_to_edit', $_GET, false, PATTERN_ID);
    329 
    330324      $author_id = get_comment_author_id($_GET['comment_to_edit']);
    331 
    332325      if (can_manage_comment('edit', $author_id))
    333326      {
     
    442435while ($row = pwg_db_fetch_assoc($result))
    443436{
    444   $row['commentable'] = boolean_to_string($row['commentable']);
     437  $row['commentable'] = get_boolean($row['commentable']);
    445438  array_push($related_categories, $row);
    446439}
Note: See TracChangeset for help on using the changeset viewer.