Show
Ignore:
Timestamp:
07/15/08 13:36:59 (5 months ago)
Author:
sidtheduck
Message:

+ Fix for ticket #169 - no duplicate album names within the same collection
+ Extended the duplicate collection name verification
+ Fixed issues with move_picture to behave more like add_picture (adds a (#) at the end of the filename if duplicate filenames)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-admin/plog-manage.php

    r555 r558  
    132132if (empty($_REQUEST['level'])) { 
    133133        $_REQUEST['level'] = ''; 
    134 }; 
     134} 
    135135 
    136136// here we will determine if we need to perform a move or delete action. 
     
    186186 
    187187                if (isset($_REQUEST["selected"])) { 
    188                         foreach($_REQUEST["selected"] as $mov_id) { 
     188                        foreach ($_REQUEST["selected"] as $mov_id) { 
    189189 
    190190                                // if we are using pictures we need to update the parent_collection as well 
     
    196196                                        } else { 
    197197                                                $output .= "\n\t" . '<p class="errors">' . $result['errors'] . '</p>' . "\n"; 
    198                                         }; 
    199                                 } 
    200                                 else if ($level == "albums") { 
     198                                        } 
     199                                } else if ($level == "albums") { 
    201200                                        // if we are moving entire albums then we need to rename the folder 
    202201                                        // $pid is our target collection id, $mov_id is our source album 
     
    207206                                        } else { 
    208207                                                $output .= "\n\t" . '<p class="errors">' . $result['errors'] . '</p>' . "\n"; 
    209                                         }; 
     208                                        } 
    210209                                } 
    211210