svn: /web/doc-editor/trunk/ php/File.php scripts/cron/update_data.php

From: Date: Wed, 03 Feb 2010 18:16:30 +0000
Subject: svn: /web/doc-editor/trunk/ php/File.php scripts/cron/update_data.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1507@lists.php.net to get a copy of this message
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

« previous php.doc.web (#1507) next »