[pLog-svn] r2263 - plog/branches/plog-1.0.2/class/action

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Tue Jun 21 18:13:49 GMT 2005


Author: jondaley
Date: 2005-06-21 18:13:48 +0000 (Tue, 21 Jun 2005)
New Revision: 2263

Modified:
   plog/branches/plog-1.0.2/class/action/viewresourceaction.class.php
Log:
I want to be able to set resources, if I know the URL, even if the album has been set to 'not show'.  Is this the correct behavior, or is 'not show' supposed to mean 'cant see at all'?  I don't know what the point of that would be, hence this change, which effectively makes the 'not show' just like the 'dont show category on main page' setting.  disagreements?

Modified: plog/branches/plog-1.0.2/class/action/viewresourceaction.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/action/viewresourceaction.class.php	2005-06-21 18:10:36 UTC (rev 2262)
+++ plog/branches/plog-1.0.2/class/action/viewresourceaction.class.php	2005-06-21 18:13:48 UTC (rev 2263)
@@ -74,7 +74,7 @@
 			
 			// try to find the album to which this resource belongs
 			if( $this->_albumName ) {
-				$album = $galleryAlbums->getAlbumByName( $this->_albumName, $this->_blogInfo->getId(), false, true );
+				$album = $galleryAlbums->getAlbumByName( $this->_albumName, $this->_blogInfo->getId(), false, false);
 				if( !$album ) {
 					$this->_view = new ErrorView( $this->_blogInfo );
 					$this->_view->setValue( "message", "error_fetching_resource" );




More information about the pLog-svn mailing list