Changeset 7387 for trunk/inc/classes/BxDolVoting.php
- Timestamp:
- 10/31/08 11:35:27 (4 years ago)
- File:
-
- 1 edited
-
trunk/inc/classes/BxDolVoting.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolVoting.php
r7227 r7387 37 37 ), 38 38 39 ' gphoto' => array (39 'sharedPhoto' => array ( 40 40 'table_rating' => 'gphoto_rating', 41 41 'table_track' => 'gphoto_voting_track', … … 47 47 ), 48 48 49 ' gmusic' => array (49 'sharedMusic' => array ( 50 50 'table_rating' => 'gmusic_rating', 51 51 'table_track' => 'gmusic_voting_track', … … 57 57 ), 58 58 59 ' gvideo' => array (59 'sharedVideo' => array ( 60 60 'table_rating' => 'gvideo_rating', 61 61 'table_track' => 'gvideo_voting_track', … … 134 134 135 135 require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php'); 136 switch ($this->_sSystem) { 137 case 'gphoto': $sUnit = 'sharedPhoto'; break; 138 case 'gmusic': $sUnit = 'sharedMusic'; break; 139 case 'gvideo': $sUnit = 'sharedVideo'; break; 140 default: $sUnit = $this->_sSystem; break; 141 } 142 $oZ = new BxDolAlerts($sUnit, 'rate', $this->getId()); 136 $oZ = new BxDolAlerts($this->_sSystem, 'rate', $this->getId()); 143 137 $oZ->alert(); 144 138 return $this->_oQuery->putVote ($this->getId(), $_SERVER['REMOTE_ADDR'], $iVote);
Note: See TracChangeset
for help on using the changeset viewer.