[imc-sf-coders] CVS update of
sf-active/sf-active/shared/classes/pages (publish.inc)
Bart M
pseudopunk at codecoop.org
Thu Dec 29 12:21:08 PST 2005
Date: Thursday, December 29, 2005 @ 21:21:08
Author: pseudopunk
Path: /cvsroot/sf-active/sf-active/sf-active/shared/classes/pages
Modified: publish.inc
closes 373 -- it was made to only do multicat publishing. fixed that
Index: sf-active/sf-active/shared/classes/pages/publish.inc
diff -u sf-active/sf-active/shared/classes/pages/publish.inc:1.72 sf-active/sf-active/shared/classes/pages/publish.inc:1.73
--- sf-active/sf-active/shared/classes/pages/publish.inc:1.72 Wed Dec 28 15:36:10 2005
+++ sf-active/sf-active/shared/classes/pages/publish.inc Thu Dec 29 21:21:07 2005
@@ -71,10 +71,9 @@
// blicero here we produce the different select for single or multicategorypublishing :)
// removed db-queries. the arrays are now cached to disk when you change categories
// should save 4 till 6 queries per publish.
- $this->tkeys['cat_forms'] = $GLOBALS['multicat_forms'];
-
if ($GLOBALS['multicat']=="1")
{
+ $this->tkeys['cat_forms'] = $GLOBALS['multicat_forms'];
// we include the various array's
$this->tkeys['cattema_options'] = $this->get_cached_var('cattema_options');
$this->tkeys['catlocali_options'] = $this->get_cached_var('catlocali_options');
@@ -99,6 +98,8 @@
{
// if we don't allow multicategory publishing
$this->tkeys['cat_options'] = $this->get_cached_var('cat_options');
+ $this->tkeys['cat_options'][0] = $this->tr->trans('select_a_category');
+ ksort($this->tkeys['cat_options']);
}
// here we create the dropdown menu for the language selection.
// modified to set the default language to the display language
More information about the imc-sf-coders
mailing list