Added : New sqlQuery

Updated : show_rating function
This commit is contained in:
Fawaz 2011-05-25 11:34:26 +00:00
parent 1c7723e764
commit bc427e4a8e
2 changed files with 4 additions and 0 deletions

View file

@ -19,3 +19,5 @@ UPDATE `clipbucket_svn`.`cb_pages` SET `page_order` = '5' WHERE `cb_pages`.`page
UPDATE `clipbucket_svn`.`cb_pages` SET `page_order` = '6' WHERE `cb_pages`.`page_id` =6 LIMIT 1 ;
ALTER TABLE `cb_users` ADD `voted` TEXT NOT NULL AFTER `last_commented`
INSERT INTO `clipbucket_svn`.`cb_config` (`configid`, `name`, `value`) VALUES (NULL, 'rating_style', 'percentage');

View file

@ -2807,6 +2807,8 @@
$ratings = $params['ratings'];
$total = $params['total'];
$style = $params['style'];
if(empty($style))
$style = config('rating_style');
//Checking Percent
if($rating<=0)
{ $perc = '0'; $disperc = '0'; }