cvs: phpweb / quickref.php
| From: | Gabor Hojtsy | Date: | Sat, 06 Sep 2003 09:16:51 +0000 |
| Subject: | cvs: phpweb / quickref.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20818@lists.php.net to get a copy of this message | ||
goba Sat Sep 6 05:16:51 2003 EDT
Modified files:
/phpweb quickref.php
Log:
If there is no manual in the language selected by the user,
then this service is unable to work, so inform the user on this
Index: phpweb/quickref.php
diff -u phpweb/quickref.php:1.29 phpweb/quickref.php:1.30
--- phpweb/quickref.php:1.29 Sun Aug 31 15:21:25 2003
+++ phpweb/quickref.php Sat Sep 6 05:16:51 2003
@@ -1,6 +1,6 @@
<?php
-// $Id: quickref.php,v 1.29 2003/08/31 19:21:25 goba Exp $
+// $Id: quickref.php,v 1.30 2003/09/06 09:16:51 goba Exp $
/*
@@ -18,6 +18,7 @@
// Ensure that our environment is set up
$_SERVER['BASE_PAGE'] = 'quickref.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';
// Constant values for the display
define("COLUMNS", 3);
@@ -53,7 +54,7 @@
// if there is no dir for that language
$dirh = @opendir($_SERVER['DOCUMENT_ROOT'] . "/manual/$LANG");
if (!$dirh) {
- $dirh = opendir($_SERVER['DOCUMENT_ROOT'] . "/manual/en");
+ error_noservice();
}
$functions = $maybe = $temp = $parts = array();