https://bugzilla.wikimedia.org/show_bug.cgi?id=29746

--- Comment #2 from Reedy <[email protected]> 2011-07-06 20:22:14 UTC ---
                if ( !is_null( $result->getSectionTitle() ) ) {
                    if ( isset( $prop['sectiontitle'] ) ) {
                        $vals['sectiontitle'] = $result->getSectionTitle();
                    }
                    if ( isset( $prop['sectionsnippet'] ) ) {
                        $vals['sectionsnippet'] = $result->getSectionSnippet();
                    }
                }



http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=WikiProject%20Spam%20zola%20enterprises&srwhat=text&srnamespace=5&srprop=sectiontitle|sectionsnippet

<?xml version="1.0"?>
<api>
  <query>
    <searchinfo totalhits="3" />
    <search>
      <p ns="5" title="Wikipedia talk:WikiProject Spam/2011 Archive Jun 1"
sectiontitle="Wikipedia talk:WikiProject Spam/2011 Archive Jun 1"
sectionsnippet="&lt;span class=&#039;searchmatch&#039;&gt;Zola&lt;/span&gt;
&lt;span class=&#039;searchmatch&#039;&gt;Enterprises&lt;/span&gt; &lt;span
class=&#039;searchmatch&#039;&gt;spam&lt;/span&gt; on Wikipedia 3" />
      <p ns="5" title="Wikipedia talk:WikiProject Spam/2010 Archive Aug 3"
sectiontitle="Wikipedia talk:WikiProject Spam/2010 Archive Aug 3"
sectionsnippet="&lt;span class=&#039;searchmatch&#039;&gt;Zola&lt;/span&gt;
&lt;span class=&#039;searchmatch&#039;&gt;Enterprises&lt;/span&gt; &lt;span
class=&#039;searchmatch&#039;&gt;spam&lt;/span&gt; on Wikipedia 2" />
      <p ns="5" title="Wikipedia talk:WikiProject Spam/2010 Archive Jun 1"
sectiontitle="Wikipedia talk:WikiProject Spam/2010 Archive Jun 1"
sectionsnippet="&lt;span class=&#039;searchmatch&#039;&gt;Zola&lt;/span&gt;
&lt;span class=&#039;searchmatch&#039;&gt;Enterprises&lt;/span&gt; &lt;span
class=&#039;searchmatch&#039;&gt;spam&lt;/span&gt; on Wikipedia" />
    </search>
  </query>
</api>

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to