1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 11:13:59 +02:00

[ticket/11700] And some last comments with backslashes

PHPBB3-11700
This commit is contained in:
Nils Adermann
2013-09-16 05:00:18 +02:00
parent ee1c15fe7e
commit 390dc86344
11 changed files with 30 additions and 30 deletions

View File

@@ -183,7 +183,7 @@ class base
$store_ids = array_slice($id_ary, 0, $length);
// create a new \resultset if there is none for this search_key yet
// create a new resultset if there is none for this search_key yet
// or add the ids to the existing resultset
if (!($store = $cache->get('_search_results_' . $search_key)))
{

View File

@@ -1271,7 +1271,7 @@ class fulltext_native extends \phpbb\search\base
// We now have unique arrays of all words to be added and removed and
// individual arrays of added and removed words for text and title. What
// we need to do now is add the new \words (if they don't already exist)
// we need to do now is add the new words (if they don't already exist)
// and then add (or remove) matches between the words and this post
if (sizeof($unique_add_words))
{
@@ -1308,7 +1308,7 @@ class fulltext_native extends \phpbb\search\base
$this->db->sql_transaction('begin');
}
// now update the search match table, remove links to removed words and add links to new \words
// now update the search match table, remove links to removed words and add links to new words
foreach ($words['del'] as $word_in => $word_ary)
{
$title_match = ($word_in == 'title') ? 1 : 0;
@@ -1468,7 +1468,7 @@ class fulltext_native extends \phpbb\search\base
WHERE ' . $this->db->sql_in_set('word_id', $sql_in);
$this->db->sql_query($sql);
// by setting search_last_gc to the new \time here we make sure that if a user reloads because the
// by setting search_last_gc to the new time here we make sure that if a user reloads because the
// following query takes too long, he won't run into it again
set_config('search_last_gc', time(), true);

View File

@@ -65,7 +65,7 @@ class config
/**
* Appends a new \empty section to the end of the config
*
* @param string $name The name for the new \section
* @param string $name The name for the new section
* @return \phpbb\search\sphinx\config_section The newly created section object
*
* @access public
@@ -143,7 +143,7 @@ class config
$section_name .= $line[$j];
}
// And then we create the new \section object
// And then we create the new section object
$section_name = trim($section_name);
$section = new \phpbb\search\sphinx\config_section($section_name, $section_name_comment);
}
@@ -163,7 +163,7 @@ class config
$section->add_variable(new \phpbb\search\sphinx\config_comment($config_file[$i]));
continue;
}
// As long as we haven't yet actually found an opening bracket for this section
// we treat everything as comments so it's not deleted either
if (!$found_opening_bracket)
@@ -182,7 +182,7 @@ class config
}
}
// If we did not find a comment in this line or still add to the previous
// If we did not find a comment in this line or still add to the previous
// line's value ...
if ($line || $in_value)
{
@@ -241,8 +241,8 @@ class config
}
}
// If a name and an equal sign were found then we have append a
// new \variable object to the section
// If a name and an equal sign were found then we have append a
// new variable object to the section
if ($name && $found_assignment)
{
$section->add_variable(new \phpbb\search\sphinx\config_variable(trim($name), trim($value), ($end_section) ? '' : $comment));
@@ -250,7 +250,7 @@ class config
}
/* If we found a closing curly bracket this section has been completed
and we can append it to the section list and continue with looking for
and we can append it to the section list and continue with looking for
the next section */
if ($end_section)
{