Changeset 19711
- Timestamp:
- Jan 2, 2013, 12:14:42 PM (11 years ago)
- Location:
- extensions/instagram2piwigo
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/instagram2piwigo/admin/import.php
r19561 r19711 100 100 'profile_url' => 'http://instagram.com/'.$username, 101 101 'logout_url' => INSTAG_ADMIN . '-import&action=logout', 102 'list_photos_url' => INSTAG_ADMIN . '-import&action=list_ all',102 'list_photos_url' => INSTAG_ADMIN . '-import&action=list_photos', 103 103 )); 104 104 break; … … 106 106 107 107 // list photos 108 case 'list_ all':108 case 'list_photos': 109 109 { 110 110 $self_url = INSTAG_ADMIN . '-import&action=list_photos'; … … 117 117 else $page['display'] = 20; 118 118 119 $all_photos = $current_user->get Feed();119 $all_photos = $current_user->getAllMedia(); 120 120 121 121 // get existing photos -
extensions/instagram2piwigo/admin/template/import.tpl
r19561 r19711 30 30 31 31 {* <!-- PHOTOS LIST --> *} 32 {elseif $ACTION == 'list_ all'}33 {include file=$INSTAG_ABS_PATH|@cat:'admin/template/import.list_ all.tpl'}32 {elseif $ACTION == 'list_photos'} 33 {include file=$INSTAG_ABS_PATH|@cat:'admin/template/import.list_photos.tpl'} 34 34 35 35 {/if} -
extensions/instagram2piwigo/include/Instagram/User.php
r19561 r19711 151 151 return new Instagram_Collection_MediaCollection( $this->proxy->getUserMedia( $this->getApiId(), $params ), $this->proxy ); 152 152 } 153 154 /** 155 * Get all user's media 156 * 157 * @return Instagram_Collection_MediaCollection 158 * @access public 159 */ 160 public function getAllMedia() { 161 $main = $this->getMedia(); 162 $next = $main->getNext(); 163 164 while ( $next !== null ) { 165 $temp = $this->getMedia( array('max_id' => $next) ); 166 $next = $temp->getNext(); 167 $main->addData( $temp ); 168 } 169 170 return $main; 171 } 153 172 154 173 /**
Note: See TracChangeset
for help on using the changeset viewer.