svn: /phpdoc/doc-base/trunk/scripts/ build-chms.php
| From: | Richard Quadling | Date: | Mon, 14 Nov 2011 11:17:38 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/scripts/ build-chms.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9031@lists.php.net to get a copy of this message | ||
rquadling Mon, 14 Nov 2011 11:17:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=319163
Log:
Use location of script as base for languages.inc, not the working directory.
New translations will now be processed correctly.
Changed paths:
U phpdoc/doc-base/trunk/scripts/build-chms.php
Modified: phpdoc/doc-base/trunk/scripts/build-chms.php
===================================================================
--- phpdoc/doc-base/trunk/scripts/build-chms.php 2011-11-14 11:12:02 UTC (rev 319162)
+++ phpdoc/doc-base/trunk/scripts/build-chms.php 2011-11-14 11:17:38 UTC (rev 319163)
@@ -68,14 +68,14 @@
/**
* The languages to build are retrieved from https://svn.php.net/repository/web/php/trunk/include/languages.inc
*/
- if (file_exists('./languages.inc'))
+ if (file_exists(__DIR__ . '\\languages.inc'))
{
- unlink('./languages.inc');
+ unlink(__DIR__ . '\\languages.inc');
}
execute_task('Get list of online languages', PATH_WGET, '--debug --verbose
--no-check-certificate https://svn.php.net/repository/web/php/trunk/include/languages.inc
--output-document=' . __DIR__ . '\\languages.inc', 'wget_langs');
- if (file_exists('./languages.inc'))
+ if (file_exists(__DIR__ . '\\languages.inc'))
{
- include_once './languages.inc';
+ include_once __DIR__ . '\\languages.inc';
}
/**