Plugin Directory

Changeset 849296


Ignore:
Timestamp:
02/01/2014 06:22:06 AM (12 years ago)
Author:
eightface
Message:

Rename admin.php to flickrrss-admin.php, oops!

Location:
flickr-rss/trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • flickr-rss/trunk/flickrrss.php

    r849220 r849296  
    9191        }
    9292   
    93         function printGallery($settings = array()) {
    94        
    95             if (!is_array($settings)) {
    96                 $settings = $this->fixArguments(func_get_args());
    97             }
    98        
    99             $settings = array_merge($this->getSettings(), $settings);
    100             if (!($rss = $this->getRSS($settings))) return;
     93        function printGallery( $settings ) {
     94       
     95            if ( ! is_array( $settings ) ) {
     96                return; // probably need better error stuff here
     97            }
     98       
     99            $settings = array_merge( $this->getSettings(), $settings );
     100
     101            if ( ! ( $rss = $this->getRSS( $settings ) ) ) return;
     102
    101103            # specifies number of pictures
    102             $items = array_slice($rss->items, 0, $settings['num_items']);
    103             echo stripslashes($settings['before_list']);
     104            var_dump( $items );
     105            $items = array_slice( $rss->items, 0, $settings['num_items'] );
     106
     107            echo stripslashes( $settings['before_list'] );
     108
    104109            # builds html from array
    105110            foreach ( $items as $item ) {
     
    217222
    218223            // add setting page
    219             include ( 'flickrrss-settingspage.php' );
     224            include ( 'flickrrss-admin.php' );
    220225
    221226        }
Note: See TracChangeset for help on using the changeset viewer.