svn: /web/php-rmtools/trunk/docroot/rm/ index.php
| From: | Pierre Joye | Date: | Mon, 11 Jan 2010 02:08:31 +0000 |
| Subject: | svn: /web/php-rmtools/trunk/docroot/rm/ index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-6957@lists.php.net to get a copy of this message | ||
pajoye Mon, 11 Jan 2010 02:08:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293378
Log:
- be nice with the non RM dev
Changed paths:
U web/php-rmtools/trunk/docroot/rm/index.php
Modified: web/php-rmtools/trunk/docroot/rm/index.php
===================================================================
--- web/php-rmtools/trunk/docroot/rm/index.php 2010-01-11 01:57:44 UTC (rev 293377)
+++ web/php-rmtools/trunk/docroot/rm/index.php 2010-01-11 02:08:31 UTC (rev 293378)
@@ -14,7 +14,7 @@
$title = $release = '5.3.2';
try {
-$svn = new rm\Storage($release);
+ $svn = new rm\Storage($release);
} catch (Exception $e) {
$error = $e->getMessage();
$tpl = 'error.php';
@@ -88,9 +88,14 @@
case 'menu':
default:
+ $tpl = 'menu.php';
$base = new rm\Base;
- $releases = $base->getReleaseForRM($username);
- $tpl = 'menu.php';
+ try {
+ $releases = $base->getReleaseForRM($username);
+ } catch (\Exception $e) {
+ $error = "$username has no RM role in any active release.";
+ $tpl = 'error.php';
+ }
}
include TPL_PATH . '/header.php';
include TPL_PATH . '/'. $tpl;