- Timestamp:
- Mar 10, 2013, 4:46:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/include/subscribe_to_comments.inc.php
r21340 r21439 184 184 if (pwg_db_num_rows($result)) 185 185 { 186 list($stc_id) = pwg_db_fetch_row($result); 186 187 $template->assign(array( 187 'SUBSCRIBED _ALL_IMAGES' => true,188 ' MANAGE_LINK' => make_stc_url('manage', $user['email']),188 'SUBSCRIBED' => 'all-images', 189 'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)), 189 190 )); 190 191 $subscribed = true; … … 210 211 list($stc_id) = pwg_db_fetch_row($result); 211 212 $template->assign(array( 212 'SUBSCRIBED _ALBUM_IMAGES' => true,213 'SUBSCRIBED' => 'album-images', 213 214 'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)), 214 215 )); … … 235 236 list($stc_id) = pwg_db_fetch_row($result); 236 237 $template->assign(array( 237 'SUBSCRIBED _IMAGE' => true,238 'SUBSCRIBED' => 'image', 238 239 'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)), 239 240 )); … … 298 299 if ( !is_a_guest() and !empty($user['email']) ) 299 300 { 301 $element_url = make_index_url(array( 302 'section' => 'categories', 303 'category' => $page['category'], 304 )); 305 300 306 $subscribed = false; 301 307 … … 315 321 if (pwg_db_num_rows($result)) 316 322 { 323 list($stc_id) = pwg_db_fetch_row($result); 317 324 $template->assign(array( 318 'SUBSCRIBED _ALL_ALBUMS' => true,319 ' MANAGE_LINK' => make_stc_url('manage', $user['email']),325 'SUBSCRIBED' => 'all-albums', 326 'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)), 320 327 )); 321 328 $subscribed = true; … … 340 347 { 341 348 list($stc_id) = pwg_db_fetch_row($result); 342 $element_url = make_index_url(array(343 'section' => 'categories',344 'category' => $page['category'],345 ));346 347 349 $template->assign(array( 348 'SUBSCRIBED _ALBUM' => true,350 'SUBSCRIBED' => 'album', 349 351 'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)), 350 352 ));
Note: See TracChangeset
for help on using the changeset viewer.