This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 4d55014dab558d3d0f5cca1ee784c448c9aa1385 (commit)
from e6a61d4c94175f113835e80818286f55d00ae753 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=4d55014dab558d3d0f5cca1ee784c448c9aa1385
commit 4d55014dab558d3d0f5cca1ee784c448c9aa1385
Author: Marc-Etienne Vargenau <[email protected]>
Date: Thu Jun 30 18:27:18 2016 +0200
Check isEditable()
diff --git a/src/www/account/index.php b/src/www/account/index.php
index f8f7a8f..175ae29 100644
--- a/src/www/account/index.php
+++ b/src/www/account/index.php
@@ -167,13 +167,28 @@ echo $HTML->listTableTop(array(), array(), 'infotable');
<?php echo _('Language')._(':'); ?>
</td>
<td>
- <?php echo html_get_language_popup ('language',$u->getLanguage()); ?>
+ <?php
+ if ($u->isEditable('language')) {
+ echo html_get_language_popup ('language',$u->getLanguage());
+ } else {
+ print $u->getLanguage();
+ }
+ ?>
</td>
</tr>
<tr class="top">
- <td><?php echo _('Timezone:'); ?></td>
- <td><?php echo html_get_timezone_popup('timezone', $u->getTimeZone());
?>
+ <td>
+ <?php echo _('Timezone')._(':'); ?>
+ </td>
+ <td>
+ <?php
+ if ($u->isEditable('timezone')) {
+ echo html_get_timezone_popup('timezone', $u->getTimeZone());
+ } else {
+ print $u->getTimeZone();
+ }
+ ?>
</td>
</tr>
@@ -188,7 +203,13 @@ echo $HTML->listTableTop(array(), array(), 'infotable');
<?php echo _('Country')._(':'); ?>
</td>
<td>
- <?php echo html_get_ccode_popup('ccode', $u->getCountryCode()); ?>
+ <?php
+ if ($u->isEditable('ccode')) {
+ echo html_get_ccode_popup('ccode', $u->getCountryCode());
+ } else {
+ print $u->getCountryCode();
+ }
+ ?>
</td>
</tr>
-----------------------------------------------------------------------
Summary of changes:
src/www/account/index.php | 29 +++++++++++++++++++++++++----
1 file changed, 25 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits