svn: /web/doc-editor/trunk/ php/File.php scripts/cron/update_data.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Wed, 03 Feb 2010 18:16:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=294431
Log:
Fix regex on reviewed tag
Changed paths:
U web/doc-editor/trunk/php/File.php
U web/doc-editor/trunk/scripts/cron/update_data.php
Modified: web/doc-editor/trunk/php/File.php
===================================================================
--- web/doc-editor/trunk/php/File.php 2010-02-03 18:15:16 UTC (rev 294430)
+++ web/doc-editor/trunk/php/File.php 2010-02-03 18:16:30 UTC (rev 294431)
@@ -246,7 +246,7 @@
// Reviewed tag
$match = array();
- if (preg_match('/<!--\s*Reviewed:\s*(.*?)*-->/Ui', $content, $match)) {
+ if (preg_match('/<!--\s*Reviewed:\s*(.*?)\s*-->/', $content, $match)) {
$info['reviewed'] = trim($match[1]);
}
Modified: web/doc-editor/trunk/scripts/cron/update_data.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/update_data.php 2010-02-03 18:15:16 UTC (rev 294430)
+++ web/doc-editor/trunk/scripts/cron/update_data.php 2010-02-03 18:16:30 UTC (rev 294431)
@@ -27,10 +27,11 @@
$pm->setProject($project['code']);
// VCS update
- $rm->updateRepository();
+ //$rm->updateRepository();
// After update the repo, we need to chmod all file to be able to save it again as www server user & group
- $cmd = "cd ".DOC_EDITOR_VCS_PATH."; chmod -R 777 ./; chown -R ".DOC_EDITOR_WWW_USER.":".DOC_EDITOR_WWW_GROUP." ./";
+ $cmd = "cd ".$DOC_EDITOR_VCS_PATH."; chmod -R 777 ./; chown -R ".$DOC_EDITOR_WWW_USER.":".$DOC_EDITOR_WWW_GROUP." ./";
+
exec($cmd);
// Clean Up DB
@@ -42,16 +43,21 @@
if ($lock->lock()) {
// Start Revcheck
+echo "apply revcheck\n";
$rm->applyRevCheck();
// Search for NotInEN Old Files
+echo "apply notInEN\n";
$rm->updateNotInEN();
// Parse translators
+echo "apply TranslatorInfo\n";
$rm->updateTranslatorInfo();
// Compute all summary
+echo "apply translation computeSummary\n";
TranslationStatistic::getInstance()->computeSummary('all');
+echo "apply translator computeSummary\n";
TranslatorStatistic::getInstance()->computeSummary('all');
// Set lastUpdate date/time