commit 22942fea50d6f6c700136333f86de3d1f66b39ca
parent b948ba751323af1d8b35d04cae43d7ac5341d057
Author: dankert <devnull@localhost>
Date: Sat, 24 Apr 2004 18:55:27 +0200
Korrektur: pub()
Diffstat:
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/actionClasses/FileAction.class.php b/actionClasses/FileAction.class.php
@@ -20,7 +20,10 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.1 2004-04-24 15:14:52 dankert
+// Revision 1.2 2004-04-24 16:55:27 dankert
+// Korrektur: pub()
+//
+// Revision 1.1 2004/04/24 15:14:52 dankert
// Initiale Version
//
// ---------------------------------------------------------------------------
@@ -241,9 +244,16 @@ class FileAction extends Action
function pub()
{
$this->file->publish();
-
- $var['filenames'] = Array( $this->file->full_filename() );
- $this->forward('all_publish');
+
+ $list = array();
+ foreach( $this->file->publish->publishedObjects as $o )
+ {
+ $list[] = $o['filename'];
+ }
+
+ $this->setTemplateVar('filenames',$list);
+
+ $this->forward('publish');
}
diff --git a/actionClasses/PageAction.class.php b/actionClasses/PageAction.class.php
@@ -20,7 +20,10 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.1 2004-04-24 15:14:52 dankert
+// Revision 1.2 2004-04-24 16:55:27 dankert
+// Korrektur: pub()
+//
+// Revision 1.1 2004/04/24 15:14:52 dankert
// Initiale Version
//
// ---------------------------------------------------------------------------
@@ -257,12 +260,12 @@ class PageAction extends Action
$list = array();
foreach( $this->page->publish->publishedObjects as $o )
{
- $var['filenames'][] = $o['filename'];
+ $list[] = $o['filename'];
}
$this->setTemplateVar('filenames',$list);
- $this->forward('all_publish');
+ $this->forward('publish');
}