Dotclear

Changeset 948


Ignore:
Timestamp:
03/26/09 21:42:06 (14 years ago)
Author:
bruno
bzr:base-revision:
dsls@kissifrott-20090325130520-dy7smnk4n2shaahu
bzr:committer:
dsls <dsls@kissifrott>
bzr:mapping-version:
v4
bzr:repository-uuid:
b35155ea-a742-4b26-8089-0891bb790021
bzr:revision-id:
dsls@kissifrott-20090326204134-stz5n9wjsnwqp1yh
bzr:revno:
28
bzr:revprop:branch-nick:
gallery
bzr:root:
plugins/gallery/trunk
bzr:timestamp:
2009-03-26 21:41:34.923000097 +0100
bzr:user-agent:
bzr1.13rc1+bzr-svn0.5.3
svn:original-date:
2009-03-26T20:41:34.923000Z
Message:

Oops ... fixed autogallery settings for images

Location:
plugins/gallery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/gallery/trunk/_public_urlhandlers.php

    r935 r948  
    289289           
    290290          $gal=null; 
    291           if(isset($_GET['autogallery'])){ 
    292                $gal = $GLOBALS['core']->gallery->getImageGalleries($GLOBALS['_ctx']->post->post_id); 
     291          if(array_key_exists('autogallery',$_GET)){ 
     292               $gal = $GLOBALS['core']->gallery->getImageGalleries($GLOBALS['_ctx']->posts->post_id); 
    293293          } 
    294294           
     
    306306               $gal = $GLOBALS['core']->gallery->getGalleries(array('post_url'=>$GLOBALS['_ctx']->gallery_url)); 
    307307          } 
    308           if ($gal != null) { 
     308          if ($gal != null && !$gal->isEmpty()) { 
    309309               $meta = $GLOBALS['core']->meta->getMetaArray($gal->post_meta); 
    310310               if (isset($meta['galtheme'])) { 
  • plugins/gallery/trunk/_pubrest.php

    r935 r948  
    3838               $sortby=''; 
    3939               switch ($get['sortby']) { 
    40                     case 'title': $sortby = 'post_title'; break; 
    41                     case 'selected' : $sortby = 'post_selected'; break; 
     40                    case 'title': $sortby = 'P.post_title'; break; 
     41                    case 'selected' : $sortby = 'P.post_selected'; break; 
    4242                    case 'author' : $sortby = 'user_id'; break; 
    43                     case 'date' : $sortby = 'post_dt'; break; 
    44                     case 'id' : $sortby = 'post_id'; break; 
     43                    case 'date' : $sortby = 'P.post_dt'; break; 
     44                    case 'id' : $sortby = 'P.post_id'; break; 
    4545               } 
    4646               if ($sortby != '') { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map