-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This also seems to fix my images problem that I was having.  
There is a small bug in the admin interface. When you define
different style
for a particular page, style field for that page gets updated in the
database correctly. But, when you hit 'modify' again, style dropbox
shows
[inherited], which is incorrect..
This is due to undefined $style var in 'Admin Root/host/page' page.
Current code:
      if ($action == 'modify')

         $up          = $page->up;
         $name        = $page->name;
         $title       = $page->title;
         $content     = $page->content;
         $author      = $page->author;
         $active      = $page->active;
         $auth        = $page->auth;
      } elseif ($action == 'create')

         $up          = $page->id;
         $author      = $midgard->user;
      } ?>
should be changed to:
      if ($action == 'modify')

         $up          = $page->up;
         $style       = $page->style;
         $name        = $page->name;
         $title       = $page->title;
         $content     = $page->content;
         $author      = $page->author;
         $active      = $page->active;
         $auth        = $page->auth;
      } elseif ($action == 'create')

         $up          = $page->id;
         $author      = $midgard->user;
      } ?>

Hope this helps,

Vanja


- --
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>

iQA/AwUBONut2Ar+l9aWyTEAEQIPZwCghb/YnPf3/wJeuZNxjgWYyEuYarkAn0eI
6Nql1ls/z2w4JnI2ujR8lFFH
=AwM0
-----END PGP SIGNATURE-----


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to