HomeHelpTrac

Changeset 7387


Ignore:
Timestamp:
10/31/08 11:35:27 (3 years ago)
Author:
nell
Message:

Changed alerts

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolAlerts.php

    r7345 r7387  
    1414    var $aUnit; 
    1515    var $aSupportModules = array( 
    16         'alertUser' => array( 'class' => 'BxDolAlertsResponseUser', 'file' => ''), 
     16        'alertUser' => array('class' => 'BxDolAlertsResponseUser', 'file' => '') 
    1717    ); 
    1818 
    19     var $aSupportUnits = array( 
    20          
    21         'profile'   =>  array( 
    22             'picFile'   =>  'mbs.gif', 
    23             'caption'   =>  '_My Profile', 
    24             'viewLink'  =>  '', 
    25             'actions'   =>  array( 
    26                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_profile_comment', \$sArg);"), 
    27                 'rate'=>array('message'=>"return _t('_your profile has been rated');") 
    28             ) 
    29         ), 
    30          
    31         'sharedPhoto' => array( 
    32             'picFile'   =>  'pph.gif', 
    33             'caption'   =>  '_Shared Photos', 
    34             'viewLink'  =>  '', 
    35             'actions'   =>  array( 
    36                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_sharedPhoto_comment', \$sArg);"), 
    37                 'rate'=>array('message'=>"return _t('_your sharedPhoto has been rated');") 
    38             ) 
    39         ), 
    40          
    41         'sharedMusic' => array( 
    42             'picFile'   =>  'pmu.gif', 
    43             'caption'   =>  '_Shared Music Files', 
    44             'viewLink'  =>  '', 
    45             'actions'   =>  array( 
    46                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_sharedMusic_comment', \$sArg);"), 
    47                 'rate'=>array('message'=>"return _t('_your sharedMusic has been rated');") 
    48             ) 
    49         ), 
    50          
    51         'sharedVideo' => array( 
    52             'picFile'   =>  'pvi.gif', 
    53             'caption'   =>  '_Shared Videos', 
    54             'viewLink'  =>  '', 
    55             'actions'   =>  array( 
    56                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_sharedVideo_comment', \$sArg);"), 
    57                 'rate'=>array('message'=>"return _t('_your sharedVideo has been rated');") 
    58             ) 
    59         ), 
    60          
    61         'friend' => array( 
    62             'picFile'   =>  'frs.gif', 
    63             'caption'   =>  '_Friends', 
    64             'viewLink'  =>  '', 
    65             'actions'   =>  array( 
    66                 'request'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_invited_friend', \$sArg);"), 
    67                 'accept' =>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_added_friend', \$sArg);") 
    68          ) 
    69         ), 
    70          
    71         'blogposts' => array( 
    72             'picFile'   =>  'pts.gif', 
    73             'caption'   =>  '_Blogs', 
    74             'viewLink'  =>  '', 
    75             'actions'   =>  array( 
    76                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_made_blog_post', \$sArg);") 
    77         ) 
    78        ), 
    79         
    80        'guestbook' => array( 
    81             'picFile'   =>  'ars.gif', 
    82             'caption'   =>  '_Guestbook', 
    83             'viewLink'  =>  '', 
    84             'actions'   =>  array( 
    85                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_guestbook_comment', \$sArg);") 
    86             ) 
    87         ), 
    88         'classifieds' => array( 
    89             'picFile'   =>  'cls.gif', 
    90             'caption'   =>  '_Classifieds', 
    91             'viewLink'  =>  '', 
    92             'actions'   =>  array( 
    93                 'post'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_classified_comment', \$sArg);"), 
    94                 'buy' =>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_bought_classified', \$sArg);"), 
    95             ) 
    96         ) 
     19    var $aUnits = array( 
     20        'profile' => array('commentPost', 'rate'), 
     21        'sharedPhoto' => array('commentPost', 'rate'), 
     22        'sharedMusic' => array('commentPost', 'rate'), 
     23        'sharedVideo' => array('commentPost', 'rate'), 
     24        'friend' => array('request', 'accept'), 
     25        'blogposts' => array('commentPost'), 
     26        'classified' => array('commentPost', 'buy') 
    9727    ); 
    9828     
     
    10737        'actionUrl' =>   'actionUrl', 
    10838        'actionText'=>   'actionText', 
    109         'actionDate'=>   'actionDate', 
     39        'actionDate'=>   'actionDate' 
    11040    ); 
    11141     
     
    12252        $this->sUnit   = process_db_input(clear_xss($sUnit)); 
    12353 
    124         if (isset($this->aSupportUnits[$this->sUnit])) 
    125             $this->aUnit = $this->aSupportUnits[$this->sUnit]; 
     54        if (isset($this->aUnits[$this->sUnit])) 
     55            $this->aUnit[$sType] = $this->aUnits[$this->sUnit]; 
    12656        else 
    12757            return; 
     
    13767        foreach ($this->aSupportModules as $a) { 
    13868            $sClass = $a['class']; 
    139             if ($a['file'] && !class_exists($sClass)) 
    140                 include_once(BX_DIRECTORY_PATH_ROOT . $a['file']); 
     69            if ($a['file'] && !class_exists($sClass) && file_exists(BX_DIRECTORY_PATH_ROOT . $a['file'])) 
     70                include_once(BX_DIRECTORY_PATH_ROOT . $a['file']); 
     71             
    14172            $o = new $sClass(); 
    14273            $o->response($this); 
     
    15687 
    15788class BxDolAlertsResponseUser extends BxDolAlertsResponse { 
    158  
     89    var $aSupportUnits = array( 
     90        'profile'   =>  array( 
     91            'picFile'   =>  'mbs.gif', 
     92            'caption'   =>  '_My Profile', 
     93            'viewLink'  =>  '', 
     94            'actions'   =>  array( 
     95                'commentPost'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_profile_comment', \$sArg);"), 
     96                'rate'=>array('message'=>"return _t('_your profile has been rated');") 
     97            ) 
     98        ), 
     99         
     100        'sharedPhoto' => array( 
     101            'picFile'   =>  'pph.gif', 
     102            'caption'   =>  '_Shared Photos', 
     103            'viewLink'  =>  '', 
     104            'actions'   =>  array( 
     105                'commentPost'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_sharedPhoto_comment', \$sArg);"), 
     106                'rate'=>array('message'=>"return _t('_your sharedPhoto has been rated');") 
     107            ) 
     108        ), 
     109         
     110        'sharedMusic' => array( 
     111            'picFile'   =>  'pmu.gif', 
     112            'caption'   =>  '_Shared Music Files', 
     113            'viewLink'  =>  '', 
     114            'actions'   =>  array( 
     115                'commentPost'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_sharedMusic_comment', \$sArg);"), 
     116                'rate'=>array('message'=>"return _t('_your sharedMusic has been rated');") 
     117            ) 
     118        ), 
     119         
     120        'sharedVideo' => array( 
     121            'picFile'   =>  'pvi.gif', 
     122            'caption'   =>  '_Shared Videos', 
     123            'viewLink'  =>  '', 
     124            'actions'   =>  array( 
     125                'commentPost'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_sharedVideo_comment', \$sArg);"), 
     126                'rate'=>array('message'=>"return _t('_your sharedVideo has been rated');") 
     127            ) 
     128        ), 
     129         
     130        'friend' => array( 
     131            'picFile'   =>  'frs.gif', 
     132            'caption'   =>  '_Friends', 
     133            'viewLink'  =>  '', 
     134            'actions'   =>  array( 
     135                'request'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_invited_friend', \$sArg);"), 
     136                'accept' =>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_added_friend', \$sArg);") 
     137         ) 
     138        ), 
     139         
     140        'blogposts' => array( 
     141            'picFile'   =>  'pts.gif', 
     142            'caption'   =>  '_Blogs', 
     143            'viewLink'  =>  '', 
     144            'actions'   =>  array( 
     145                'commentPost'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_made_blog_post', \$sArg);") 
     146        ) 
     147       ), 
     148         
     149       'classifieds' => array( 
     150            'picFile'   =>  'cls.gif', 
     151            'caption'   =>  '_Classifieds', 
     152            'viewLink'  =>  '', 
     153            'actions'   =>  array( 
     154                'commentPost'=>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_posted_classified_comment', \$sArg);"), 
     155                'buy' =>array('message'=>"\$sArg = '<a href=\"'.getProfileLink(__iSender__).'\">'.getNickName(__iSender__).'</a>'; return _t('_user_bought_classified', \$sArg);"), 
     156            ) 
     157        ) 
     158    ); 
    159159 
    160160    var $aInfo = array( 
    161          
    162161        'profile'   =>  array( 
    163162            'infoTable' => '', 
     
    190189        ), 
    191190         
    192         'blogposts' => array( 
     191        'blog' => array( 
    193192            'customQuery'=>'SELECT `BlogCategories`.`OwnerID` FROM `BlogCategories` 
    194193                INNER JOIN `BlogPosts` ON `BlogCategories`.`CategoryID` = `BlogPosts`.`CategoryID` 
     
    196195        ), 
    197196         
    198         'guestbook' =>  array( 
    199             'infoTable' => '', 
    200             'infoObjId' => '', 
    201             'infoOwner' => '' 
    202         ), 
    203          
    204         'classifieds'=> array( 
     197        'classified'=>  array( 
    205198            'infoTable' => 'ClassifiedsAdvertisements', 
    206199            'infoObjId' => 'ID', 
     
    208201        ) 
    209202    ); 
     203     
     204    var $aCurrent; 
    210205 
    211206    function response($o) {   
    212         $sLink = $o->aUnit['actions']['viewLink']; 
    213         $sText = addslashes($o->aUnit['actions'][$o->sAction]['message']); 
     207        if (isset($this->aSupportUnits[$o->sUnit])) { 
     208            $this->aCurrent = $this->aSupportUnits[$o->sUnit]; 
     209         
     210        $sLink = $this->aCurrent['actions']['viewLink']; 
     211        $sText = addslashes($this->aCurrent['actions'][$o->sAction]['message']); 
    214212        $sText = str_replace('__iSender__', $o->iSender, $sText); 
    215213        $a = $this->aInfo[$o->sUnit]; 
     
    235233                `{$o->aAlrFields['actionDate']}` = UNIX_TIMESTAMP() 
    236234            "; 
    237      
    238             db_res($sqlQuery); 
    239         }    
     235      
     236        db_res($sqlQuery); 
     237        } 
     238      }  
    240239    } 
    241240 
  • trunk/inc/classes/BxDolArticles.php

    r7336 r7387  
    198198 
    199199 
    200     //$sOtherSQLWhere îòìåíÿåò ðàáîòó ïî $iCategoryID 
     200    //$sOtherSQLWhere  
    201201    function getArticlesList( $iCategoryID, $sOtherSQLWhere = '' ) { 
    202202 
  • trunk/inc/classes/BxDolCmts.php

    r7282 r7387  
    375375        $iCmtNewId = $this->_oQuery->addComment ($this->getId(), $iCmtParentId, $this->_getAuthorId(), $sText); 
    376376        require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php'); 
    377         $oZ = new BxDolAlerts($this->_sSystem, 'post', $this->getId(), $this->_getAuthorId()); 
     377        $oZ = new BxDolAlerts($this->_sSystem, 'commentPost', $this->getId(), $this->_getAuthorId()); 
    378378        $oZ->alert(); 
    379379        if(false === $iCmtNewId) 
  • trunk/inc/classes/BxDolSharedMedia.php

    r7372 r7387  
    1111    // can be music, photo, video 
    1212    var $sType; 
     13     
     14    // can be music, photo, video 
     15    var $sPseud; 
    1316 
    1417    // name of css file 
     
    7881        $sMediaType = process_db_input($sMediaType); 
    7982        $sName = ucfirst($sMediaType); 
     83        $this->sPseud = 'shared'.$sName; 
    8084         
    8185        $this->aConfigSite = $aSite; 
     
    318322         
    319323        if (!$bAdmin) { 
    320             $oVotingView = new BxTemplVotingView ('g'.$this->sType, $aData['medID']); 
     324            $oVotingView = new BxTemplVotingView ($this->sPseud, $aData['medID']); 
    321325            if( $oVotingView->isEnabled()) { 
    322326                $sRate = $oVotingView->getSmallVoting (0); 
     
    485489           case 'top': 
    486490            if( $mode == $myMode ) { 
    487                 $oVotingView = new BxTemplVotingView ('g'.$this->sType, 0, 0); 
     491                $oVotingView = new BxTemplVotingView ($this->sPseud, 0, 0); 
    488492                $aSql        = $oVotingView->getSqlParts('`'.$this->sMainTable.'`', '`'.$this->aTableFields['medID'].'`'); 
    489493                $sHow        = "DESC"; 
     
    530534            $sHref  = $this->getFileUrl($aData['medID'], $aData['medUri']); 
    531535             
    532             $oVotingView = new BxTemplVotingView ('g'.$this->sType, $aData['medID']); 
     536            $oVotingView = new BxTemplVotingView ($this->sPseud, $aData['medID']); 
    533537            if( $oVotingView->isEnabled()) { 
    534538                $sRate = $oVotingView->getSmallVoting (0); 
     
    950954         
    951955        if (isset($_GET['rate'])) { 
    952             $oVotingView = new BxTemplVotingView ('g'.$this->sType, 0, 0); 
     956            $oVotingView = new BxTemplVotingView ($this->sPseud, 0, 0); 
    953957             
    954958            $aSql        = $oVotingView->getSqlParts('`'.$this->sMainTable.'`', '`'.$this->aTableFields['medID'].'`'); 
  • trunk/inc/classes/BxDolSharedMediaView.php

    r7372 r7387  
    3030        $this->oShared = new BxDolSharedMedia($sMediaType, $aSite, $aDir, $aMember); 
    3131        $this->aInfo   = $this->getFileInfo(); 
    32         switch ($this->sType) { 
    33             case 'photo':  
    34                 $sComms = 'sharedPhoto'; 
    35                 break; 
    36             case 'music': 
    37                 $sComms = 'sharedMusic'; 
    38                 break; 
    39             case 'video': 
    40                 $sComms = 'sharedVideo'; 
    41                 break; 
    42         } 
    43         $this->oCmtsView = new BxTemplCmtsView ($sComms, (int)$this->iFile); 
     32        $this->oCmtsView = new BxTemplCmtsView ($this->oShared->sPseud, (int)$this->iFile); 
    4433     
    4534        parent::BxDolPageView($sMediaType); 
     
    379368        $sCode = '<center>' . _t('_Gallery video rating is not enabled') . '</center>'; 
    380369     
    381         $oVotingView = new BxTemplVotingView ('g'.$this->sType, $this->iFile); 
     370        $oVotingView = new BxTemplVotingView ($this->oShared->sPseud, $this->iFile); 
    382371        if( $oVotingView->isEnabled()) 
    383372            $sCode = $oVotingView->getBigVoting (); 
  • trunk/inc/classes/BxDolVoting.php

    r7227 r7387  
    3737        ), 
    3838 
    39         'gphoto' => array ( 
     39        'sharedPhoto' => array ( 
    4040            'table_rating' => 'gphoto_rating', 
    4141            'table_track' => 'gphoto_voting_track', 
     
    4747        ),         
    4848 
    49         'gmusic' => array ( 
     49        'sharedMusic' => array ( 
    5050            'table_rating' => 'gmusic_rating', 
    5151            'table_track' => 'gmusic_voting_track', 
     
    5757        ), 
    5858 
    59         'gvideo' => array ( 
     59        'sharedVideo' => array ( 
    6060            'table_rating' => 'gvideo_rating', 
    6161            'table_track' => 'gvideo_voting_track', 
     
    134134         
    135135        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()); 
    143137        $oZ->alert(); 
    144138        return $this->_oQuery->putVote ($this->getId(), $_SERVER['REMOTE_ADDR'], $iVote); 
  • trunk/install/sql/v61.sql

    r7378 r7387  
    16231623INSERT INTO `GlParams` VALUES('enable_global_couple', 'on', 3, 'Global Enabling of Couples', 'checkbox', '', '', NULL); 
    16241624INSERT INTO `GlParams` VALUES('enable_new_dhtml_popups', 'on', 3, 'Enable new DHTML notifications rather than popup', 'checkbox', '', '', NULL); 
    1625 INSERT INTO `GlParams` VALUES('alertUserNumber', '10', 3, 'Number of user alerts', 'digit', '', '', 15); 
     1625INSERT INTO `GlParams` VALUES('dbCleanAlert', '2', 3, 'Clean old user alerts', 'digit', '', '', 5); 
    16261626INSERT INTO `GlParams` VALUES('galleryFiles_user', '2', 23, 'Number of gallery files relate to user', 'digit', '', '', 21); 
    16271627INSERT INTO `GlParams` VALUES('galleryFiles_keyword', '2', 23, 'Number of related gallery files', 'digit', '', '', 22); 
  • trunk/periodic/cmd.php

    r7312 r7387  
    5151    $db_clean_msg = getParam("db_clean_msg"); 
    5252    $db_clean_views = getParam("db_clean_views"); 
     53    $iDbCleanAlert = getParam('dbCleanAlert'); 
    5354 
    5455    // profile_delete 
     
    8788            $db_clean_views_num = mysql_affected_rows(); 
    8889    } 
    89  
     90     
     91    if ($iDbCleanAlert > 0) { 
     92        $iNow = time(); 
     93        // number of seconds from now to clean date 
     94        $iThen = time() - $iDbCleanAlert*24*60*60; 
     95        $sqlQuery = "DELETE FROM `alerts` WHERE `actionDate` NOT BETWEEN $iNow AND $iThen"; 
     96        $rRes = db_res($sqlQuery); 
     97        if ($rRes) 
     98            $iDbCleanAlertNum = mysql_affected_rows(); 
     99    } 
    90100    echo "\n- Database cleaning -\n"; 
    91101 
     
    94104    echo "Deleted messages: $db_clean_msg_num\n"; 
    95105    echo "Deleted profile views: $db_clean_views_num\n"; 
     106    echo "Deleted user alerts: $iDbCleanAlertNum\n"; 
    96107} 
    97108 
  • trunk/templates/base/scripts/BxBaseUserAlertsView.php

    r7227 r7387  
    11<?php 
    22 
    3 require_once('inc/header.inc.php'); 
    4 require_once(BX_DIRECTORY_PATH_INC . 'db.inc.php'); 
    5 require_once(BX_DIRECTORY_PATH_INC . 'languages.inc.php'); 
    6 require_once(BX_DIRECTORY_PATH_INC . 'profiles.inc.php'); 
     3require_once(BX_DIRECTORY_PATH_INC . 'header.inc.php'); 
    74require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php'); 
    85 
     
    2421        $this->oConf = new BxDolAlerts('', '', 0, 0); 
    2522         
    26         if (is_array($aInActive)) { 
     23        if (is_array($aInActive) && !empty($aInActive)) { 
    2724            foreach ($aInActive as $iKey => $sValue) 
    2825                $sAdd .= " AND `{$this->oConf->aAlrFields['actionUnit']}` <> '$sValue'"; 
     
    4138        $sqlQuery = str_replace('__mainFields__', trim($sMainFields, ', '), $sqlTempl); 
    4239        $rData = db_res($sqlQuery); 
    43      
     40         
    4441        if (mysql_num_rows($rData) > 0) { 
    4542            while ($aMess = mysql_fetch_assoc($rData)) { 
    4643                $this->aList[$aMess['alertId']] = $aMess; 
    47                 $sqlDelCond .= $aMess['alertId'] . ","; 
    4844            } 
    49             $sqlQuery = "DELETE FROM `{$this->oConf->sAlrTable}`  
    50                          WHERE `{$this->oConf->aAlrFields['alertId']}` NOT IN (".trim($sqlDelCond,",").")  
    51                          AND `{$this->oConf->aAlrFields['alertRcpId']}`='{$this->iOwner}'"; 
    52             db_res($sqlQuery); 
    5345        } 
    5446    } 
     
    8577            WHERE `{$this->oConf->aAlrFields['alertRcpId']}`='$this->iOwner' AND `{$this->oConf->aAlrFields['alertNew']}`=1 
    8678            GROUP BY `{$this->oConf->aAlrFields['actionUnit']}`"; 
    87          
     79 
    8880        $rData = db_res($sqlQuery); 
    8981        while ($aUnit = mysql_fetch_assoc($rData)) 
     
    9688        $sCode = '<div id="alertsMenu">'; 
    9789        if (is_array($aUnits)) { 
     90            $oUnits = new BxDolAlertsResponseUser(); 
    9891            foreach ($aUnits as $iKey => $sValue) 
    9992                $sCode .= ' 
    10093                    <input type="checkbox" name="' . $sValue . '" id="' . $sValue . '"> 
    101                     <label for="' . $sValue . '"><img src="'.getTemplateIcon($this->oConf->aSupportUnits[$sValue]['picFile']).'" alt="'._t($this->oConf->aSupportUnits[$sValue]['caption']).'"></label> 
     94                    <label for="' . $sValue . '"><img src="'.getTemplateIcon($oUnits->aSupportUnits[$sValue]['picFile']).'" alt="'._t($oUnits->aSupportUnits[$sValue]['caption']).'"></label> 
    10295                '; 
    10396        } 
  • trunk/viewMusic.php

    r7336 r7387  
    3636$oNew = new BxDolSharedMediaView($iFile, 'music', $site, $dir, $member); 
    3737 
    38 $oVotingView = new BxTemplVotingView('gmusic', 0, 0); 
     38$oVotingView = new BxTemplVotingView('sharedMusic', 0, 0); 
    3939$_page['extra_js']  = $oVotingView->getExtraJs(); 
    4040 
  • trunk/viewPhoto.php

    r7336 r7387  
    3535$oNew = new BxDolSharedMediaView($iFile, 'photo', $site, $dir, $member); 
    3636 
    37 $oVotingView = new BxTemplVotingView('gphoto', 0, 0); 
     37$oVotingView = new BxTemplVotingView('sharedPhoto', 0, 0); 
    3838$_page['extra_js']  = $oVotingView->getExtraJs(); 
    3939 
  • trunk/viewVideo.php

    r7336 r7387  
    3535$oNew = new BxDolSharedMediaView($iFile, 'video', $site, $dir, $member); 
    3636 
    37 $oVotingView = new BxTemplVotingView('gvideo', 0, 0); 
     37$oVotingView = new BxTemplVotingView('sharedVideo', 0, 0); 
    3838$_page['extra_js']  = $oVotingView->getExtraJs(); 
    3939 
Note: See TracChangeset for help on using the changeset viewer.