[dev] patch for PrefsUI templates

David Ulevitch davidu@everydns.net
Thu, 4 Jul 2002 10:35:18 -0700 (PDT)


PrefsUI requires a file prefs.php for any preference editing.

A fix to allow the calling file to be used is simple:

(CVS style diff's are below)

Overview.inc(line 28):
<tr><td class="control"><?php echo
Horde::link(Horde::applicationUrl(substr($_SERVER['PHP_SELF'],1).'?group='
.. $group), $gvals['label'], 'widget') ?><b><?php echo $gvals['label']
?></b></a></td></tr>

Begin.inc (line 1):
<form method="post" name="prefs" action="<?php echo
Horde::applicationUrl(substr($_SERVER['PHP_SELF'],1)) ?>">

-davidu

Index: overview.inc
===================================================================
RCS file: /repository/horde/templates/prefs/overview.inc,v
retrieving revision 1.6
diff -r1.6 overview.inc
28c28
<             <tr><td class="control"><?php echo
Horde::link(Horde::applicationUrl('prefs.php?group=' . $group),
$gvals['label'], 'widget') ?><b><?php echo $gvals['label']
?></b></a></td></tr>
---
>             <tr><td class="control"><?php echo
Horde::link(Horde::applicationUrl(substr($_SERVER['PHP_SELF'],1).'?group='
.. $group), $gvals['label'], 'widget') ?><b><?php echo
$gvals['label'] ?></b></a></td></tr>
Index: begin.inc
===================================================================
RCS file: /repository/horde/templates/prefs/begin.inc,v
retrieving revision 1.3
diff -r1.3 begin.inc
1c1
< <form method="post" name="prefs" action="<?php echo
Horde::applicationUrl('prefs.php') ?>">
---
> <form method="post" name="prefs" action="<?php echo
Horde::applicationUrl(substr($_SERVER['PHP_SELF'],1)) ?>">
davidu@laura:/var/everybox/site/html/horde/templates/prefs$