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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 27 Feb 2010 11:09:58 +0000

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

Log:
We can now search an xmlID directly into the search field into the All Files module

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

Modified: web/doc-editor/trunk/php/RepositoryFetcher.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryFetcher.php	2010-02-27 11:09:10 UTC (rev 295566)
+++ web/doc-editor/trunk/php/RepositoryFetcher.php	2010-02-27 11:09:58 UTC (rev 295567)
@@ -529,8 +529,8 @@
     {
         $s = sprintf(
             'SELECT `lang`, `path`, `name` FROM `files` WHERE `project`="%s" AND  (`lang`="%s" OR `lang`=\'en\')
-             AND `name` LIKE \'%%%s%%\' ORDER BY `lang`, `path`, `name`',
-            AccountManager::getInstance()->project, AccountManager::getInstance()->vcsLang, $key
+             AND ( `name` LIKE \'%%%s%%\' OR `xmlid` LIKE \'%%%s%%\' ) ORDER BY `lang`, `path`, `name`',
+            AccountManager::getInstance()->project, AccountManager::getInstance()->vcsLang, $key, $key
         );
         $r = DBConnection::getInstance()->query($s);
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.