svn: /web/doc-editor/trunk/php/ RepositoryManager.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Tue, 27 Apr 2010 22:56:50 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298678

Log:
Fix path

Changed paths:
    U   web/doc-editor/trunk/php/RepositoryManager.php

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2010-04-27 22:24:37 UTC (rev 298677)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-04-27 22:56:50 UTC (rev 298678)
@@ -1472,7 +1472,7 @@
                     'INSERT INTO `files` (`project`, `lang`, `xmlid`, `path`, `name`, `revision`, `size`, `mdate`, `maintainer`, `status`, `check_oldstyle`,  `check_undoc`, `check_roleerror`, `check_badorder`, `check_noseealso`, `check_noreturnvalues`, `check_noparameters`, `check_noexamples`, `check_noerrors`)
                         VALUES ("%s", "%s", "%s", "%s", "%s", "%s", %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)',
                     $am->project,
-                    'en', $xmlid, $f->path, $f->name, $en_revision, $en_size, $en_date, 'NULL', 'NULL',
+                    'en', $xmlid, "/".$f->path."/", $f->name, $en_revision, $en_size, $en_date, 'NULL', 'NULL',
                     $ToolsCheckDocResult['check_oldstyle'],
                     $ToolsCheckDocResult['check_undoc'],
                     $ToolsCheckDocResult['check_roleerror'],
@@ -1564,7 +1564,7 @@
                             'INSERT INTO `files` (`project`, `lang`, `xmlid`, `path`, `name`, `revision`, `en_revision`, `reviewed`, `size`, `size_diff`, `mdate`, `mdate_diff`, `maintainer`, `status`)
                                 VALUES ("%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", %s, %s, %s, %s, "%s", "%s")',
                             $project,
-                            $lang, $xmlid, $lang_file->path, $lang_file->name,
+                            $lang, $xmlid, "/".$lang_file->path."/", $lang_file->name,
                             $revision, $en_revision, $reviewed,
                             $size, $size_diff, $date, $date_diff,
                             $maintainer, $status
@@ -1587,7 +1587,7 @@
                                 VALUES ("%s", "%s", "%s", "%s", %s)',
                             $project,
                             $lang,
-                            $lang_file->path,
+                            "/".$lang_file->path."/",
                             $lang_file->name,
                             $en_size
                         );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.