Permalink
Browse files

Coorection of some mistakes in the form.

Add compatibility for class="ws-summary" instead of id="ws-summary"
  • Loading branch information...
1 parent 86aa6a7 commit f6a8870a6a74aeb57bdf80c0c2f1ef7fea1e7958 @Tpt Tpt committed May 13, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 book/BookProvider.php
  2. +1 −1 http/templates/book.php
  3. +2 −2 http/templates/footer.php
View
@@ -331,7 +331,7 @@ public function getMetadata($id) {
* @return array|Page
*/
public function getChaptersList($title) {
- $list = $this->xPath->query('//*[@id="ws-summary"]/descendant::html:a[not(contains(@href,"action=edit"))][not(contains(@class,"extiw"))][not(contains(@class,"external"))]');
+ $list = $this->xPath->query('//*[@id="ws-summary" or contains(@class,"ws-summary")]/descendant::html:a[not(contains(@href,"action=edit"))][not(contains(@class,"extiw"))][not(contains(@class,"external"))]');
$chapters = array();
if($list->length != 0) {
foreach($list as $link) {
View
@@ -6,7 +6,7 @@
<label for="lang" class="control-label">Lang: </label>
<div class="controls">
<input name="lang" id="lang" type="text" size="3" maxlength="20" required="required" value="<?php echo Api::getHttpLang(); ?>" class="input-mini" />
- <span class="help-inline">The code lang of the Wikisource like en or fr</span>
+ <span class="help-inline">Language code of Wikisource domain, like en or fr</span>
</div>
</div>
<div class="control-group">
@@ -1,8 +1,8 @@
<footer class="footer">
<p>
Wsexport is a tool under <a rel="licence" href="http://www.gnu.org/licenses/gpl.html">GNU GPLv2+ licence</a>.<br />
- The souce code is available <a href="http://github.com/wsexport/tool">here</a> and a small documentation <a href="http://wikisource.org/wiki/Wikisource:WSexport">here</a>. <br />
- Some <a href="stat.php">statictics</a> are also provided.
+ The source code is available <a href="http://github.com/wsexport/tool">here</a> and a small documentation <a href="http://wikisource.org/wiki/Wikisource:WSexport">here</a>. <br />
+ Some <a href="stat.php">statistics</a> are also provided.
</p>
</footer>
</div>

0 comments on commit f6a8870

Please sign in to comment.