svn: /web/doc-editor/trunk/php/ ExtJsController.php
[email protected] (Neal Poole)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
nbpoole Sun, 26 Jun 2011 01:32:09 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312483
Log:
Updated ExtJsController.php to reduce un-necessary notices.
Changed paths:
U web/doc-editor/trunk/php/ExtJsController.php
Modified: web/doc-editor/trunk/php/ExtJsController.php
===================================================================
--- web/doc-editor/trunk/php/ExtJsController.php 2011-06-26 01:10:53 UTC (rev 312482)
+++ web/doc-editor/trunk/php/ExtJsController.php 2011-06-26 01:32:09 UTC (rev 312483)
@@ -2091,6 +2091,13 @@
$summary = RepositoryFetcher::getInstance()->getStaticValue('translation_summary', $lang);
+ // If we don't have a summary, compute one and try again
+ if ($summary === false)
+ {
+ TranslationStatistic::getInstance()->computeSummary($lang);
+ $summary = RepositoryFetcher::getInstance()->getStaticValue('translation_summary', $lang);
+ }
+
$return[0]['id'] = $summary[0]->id;
$return[0]['libel'] = $summary[0]->libel;
$return[0]['total'] = $summary[0]->nbFiles;