[Isocial-svn] SF.net SVN: isocial: [206] app/controllers/photoapp/album_controller.php
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <fsn...@us...> - 2008-05-15 17:15:41
|
Revision: 206 http://isocial.svn.sourceforge.net/isocial/?rev=206&view=rev Author: fsnobody Date: 2008-05-15 10:15:37 -0700 (Thu, 15 May 2008) Log Message: ----------- fix config hardcode Modified Paths: -------------- app/controllers/photoapp/album_controller.php Modified: app/controllers/photoapp/album_controller.php =================================================================== --- app/controllers/photoapp/album_controller.php 2008-05-15 16:42:23 UTC (rev 205) +++ app/controllers/photoapp/album_controller.php 2008-05-15 17:15:37 UTC (rev 206) @@ -77,7 +77,10 @@ $photo->setAttributes($v); $photo->save(); } - $this->redirectTo(array('action' => 'index')); + //$this->redirectTo(array('action' => 'index')); + + + $this->redirectTo(array('action' => 'view', 'id' => $photo->album_id)); } else { if (!empty($this->params['id']) && $this->PhotoappAlbum->find($this->params['id'])) { // pre delete @@ -154,7 +157,7 @@ if ($_FILES['album']['error'][$field] == 0 ) { // copy file; save photo $photo_name = microtime(true) . ".jpeg"; - $user_path = PROJECT_DIR . "public/images/uploaded/" . $this->current_user->getId(); + $user_path = AK_PUBLIC_DIR. "/images/uploaded/" . $this->current_user->getId(); if(!file_exists($user_path)) { `mkdir $user_path`; `chmod 777 $user_path`; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |