svn: /web/doc-editor/trunk/php/ RepositoryFetcher.php conf.pear.inc.php conf.php.inc.php
| From: | Yannick Torres | Date: | Mon, 04 Jan 2010 20:50:10 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ RepositoryFetcher.php conf.pear.inc.php conf.php.inc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1475@lists.php.net to get a copy of this message | ||
yannick Mon, 04 Jan 2010 20:50:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293099
Log:
Add the possibility to view the entities folder from 'All module'
Changed paths:
U web/doc-editor/trunk/php/RepositoryFetcher.php
U web/doc-editor/trunk/php/conf.pear.inc.php
U web/doc-editor/trunk/php/conf.php.inc.php
Modified: web/doc-editor/trunk/php/RepositoryFetcher.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryFetcher.php 2010-01-04 20:48:04 UTC (rev 293098)
+++ web/doc-editor/trunk/php/RepositoryFetcher.php 2010-01-04 20:50:10 UTC (rev 293099)
@@ -551,9 +551,10 @@
$files = array();
while ($f = $d->read())
{
- // We display only 'en' and 'LANG' tree
+ // We display only 'en', 'LANG' tree
if ( $dir == '/'
&& $f != 'en'
+ && $f != $GLOBALS["DOC_EDITOR_ENTITIES_FOLDER"]
&& $f != AccountManager::getInstance()->vcsLang
) {
continue; // skip non-en and non-user-lang
Modified: web/doc-editor/trunk/php/conf.pear.inc.php
===================================================================
--- web/doc-editor/trunk/php/conf.pear.inc.php 2010-01-04 20:48:04 UTC (rev 293098)
+++ web/doc-editor/trunk/php/conf.pear.inc.php 2010-01-04 20:50:10 UTC (rev 293099)
@@ -1,5 +1,5 @@
<?php
-global $DOC_EDITOR_VCS_SERVER_HOST, $DOC_EDITOR_VCS_SERVER_REPOS, $DOC_EDITOR_VCS_SERVER_PATH,
$DOC_EDITOR_VCS_SERVER_PORT, $DOC_EDITOR_VCS_ANON_LOGIN, $DOC_EDITOR_VCS_ANON_PASSWORD,
$DOC_EDITOR_VCS_MODULE, $DOC_EDITOR_VCS_KARMA_FILE, $DOC_EDITOR_DATA_PATH, $DOC_EDITOR_VCS_PATH,
$DOC_EDITOR_VCS_CONFIGURE_SCRIPT_PATH, $DOC_EDITOR_NEWS_URL_EN, $DOC_EDITOR_NEWS_URL_LANG,
$DOC_EDITOR_BUGS_URL_EN, $DOC_EDITOR_BUGS_URL_LANG, $DOC_EDITOR_ENTITIES_URL;
+global $DOC_EDITOR_VCS_SERVER_HOST, $DOC_EDITOR_VCS_SERVER_REPOS, $DOC_EDITOR_VCS_SERVER_PATH,
$DOC_EDITOR_VCS_SERVER_PORT, $DOC_EDITOR_VCS_ANON_LOGIN, $DOC_EDITOR_VCS_ANON_PASSWORD,
$DOC_EDITOR_VCS_MODULE, $DOC_EDITOR_VCS_KARMA_FILE, $DOC_EDITOR_DATA_PATH, $DOC_EDITOR_VCS_PATH,
$DOC_EDITOR_VCS_CONFIGURE_SCRIPT_PATH, $DOC_EDITOR_NEWS_URL_EN, $DOC_EDITOR_NEWS_URL_LANG,
$DOC_EDITOR_BUGS_URL_EN, $DOC_EDITOR_BUGS_URL_LANG, $DOC_EDITOR_ENTITIES_FOLDER,
$DOC_EDITOR_ENTITIES_URL;
/**
* VCS server
@@ -15,7 +15,7 @@
* VCS project path
*
*/
-$DOC_EDITOR_VCS_SERVER_PATH = $DOC_EDITOR_VCS_SERVER_REPOS . 'pear/peardoc/trunk/';
+$DOC_EDITOR_VCS_SERVER_PATH = $DOC_EDITOR_VCS_SERVER_REPOS . 'pear/peardoc/trunk/';
/**
* VCS server port
@@ -74,7 +74,12 @@
$DOC_EDITOR_BUGS_URL_LANG = 'http://pear.php.net/feeds/latest.rss';
/**
+ * Entities FOLDER
+ */
+$DOC_EDITOR_ENTITIES_FOLDER = 'entities';
+
+/**
* Entities URL
*/
-$DOC_EDITOR_ENTITIES_URL = $DOC_EDITOR_VCS_PATH.'entities/global.ent';
+$DOC_EDITOR_ENTITIES_URL = $DOC_EDITOR_VCS_PATH . $DOC_EDITOR_ENTITIES_FOLDER .
'/global.ent';
?>
\ No newline at end of file
Modified: web/doc-editor/trunk/php/conf.php.inc.php
===================================================================
--- web/doc-editor/trunk/php/conf.php.inc.php 2010-01-04 20:48:04 UTC (rev 293098)
+++ web/doc-editor/trunk/php/conf.php.inc.php 2010-01-04 20:50:10 UTC (rev 293099)
@@ -1,5 +1,5 @@
<?php
-global $DOC_EDITOR_VCS_SERVER_HOST, $DOC_EDITOR_VCS_SERVER_REPOS, $DOC_EDITOR_VCS_SERVER_PATH,
$DOC_EDITOR_VCS_SERVER_PORT, $DOC_EDITOR_VCS_ANON_LOGIN, $DOC_EDITOR_VCS_ANON_PASSWORD,
$DOC_EDITOR_VCS_MODULE, $DOC_EDITOR_VCS_KARMA_FILE, $DOC_EDITOR_DATA_PATH, $DOC_EDITOR_VCS_PATH,
$DOC_EDITOR_VCS_CONFIGURE_SCRIPT_PATH, $DOC_EDITOR_NEWS_URL_EN, $DOC_EDITOR_NEWS_URL_LANG,
$DOC_EDITOR_BUGS_URL_EN, $DOC_EDITOR_BUGS_URL_LANG, $DOC_EDITOR_ENTITIES_URL;
+global $DOC_EDITOR_VCS_SERVER_HOST, $DOC_EDITOR_VCS_SERVER_REPOS, $DOC_EDITOR_VCS_SERVER_PATH,
$DOC_EDITOR_VCS_SERVER_PORT, $DOC_EDITOR_VCS_ANON_LOGIN, $DOC_EDITOR_VCS_ANON_PASSWORD,
$DOC_EDITOR_VCS_MODULE, $DOC_EDITOR_VCS_KARMA_FILE, $DOC_EDITOR_DATA_PATH, $DOC_EDITOR_VCS_PATH,
$DOC_EDITOR_VCS_CONFIGURE_SCRIPT_PATH, $DOC_EDITOR_NEWS_URL_EN, $DOC_EDITOR_NEWS_URL_LANG,
$DOC_EDITOR_BUGS_URL_EN, $DOC_EDITOR_BUGS_URL_LANG, $DOC_EDITOR_ENTITIES_FOLDER,
$DOC_EDITOR_ENTITIES_URL;
/**
* VCS server
@@ -73,8 +73,13 @@
$DOC_EDITOR_BUGS_URL_LANG = 'http://bugs.php.net/rss/search.php?cmd=display&bug_type[]=Translation+problem&status=Open&search_for=&php_os=&php_os_not=0&boolean=1&author_email=&bug_age=0&by=&order_by=id&direction=DESC&phpver=&limit=All&assign=&format=rss';
/**
+ * Entities FOLDER
+ */
+$DOC_EDITOR_ENTITIES_FOLDER = 'doc-base';
+
+/**
* Entities URL
*/
-$DOC_EDITOR_ENTITIES_URL = $DOC_EDITOR_VCS_PATH.'/doc-base/entities/global.ent';
+$DOC_EDITOR_ENTITIES_URL =
$DOC_EDITOR_VCS_PATH.$DOC_EDITOR_ENTITIES_FOLDER.'/entities/global.ent';
?>
\ No newline at end of file