Skip to content

Commit 61e89d2

Browse files
committed
v0.4.8 - minor updateas
1 parent df078b6 commit 61e89d2

File tree

8 files changed

+43
-43
lines changed

8 files changed

+43
-43
lines changed

src/Base.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,30 @@
1616

1717
class Base
1818
{
19-
const VERSION = '0.4.7';
19+
const VERSION = '0.4.8';
2020

2121
/**
2222
* @var bool - print verbose debug messages to STDOUT
2323
*/
2424
public $verbose = false;
2525

2626
/**
27-
* @var Attogram\Router\Router
27+
* @var \Attogram\Router\Router
2828
*/
2929
public $router;
3030

3131
/**
32-
* @var Attogram\Justrefs\Template
32+
* @var \Attogram\Justrefs\Template
3333
*/
3434
public $template;
3535

3636
/**
37-
* @var Attogram\Justrefs\Filesystem
37+
* @var \Attogram\Justrefs\Filesystem
3838
*/
3939
protected $filesystem;
4040

4141
/**
42-
* @var Attogram\Justrefs\Mediawiki
42+
* @var \Attogram\Justrefs\Mediawiki
4343
*/
4444
protected $mediawiki;
4545

src/Topic.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ private function display()
8989
// set Extraction source url
9090
$this->template->set('source', $this->source . $this->encodeLink($this->data['title']));
9191
// set Data and Cache age
92-
$this->dataAge = '?';
92+
$dataAge = '?';
9393
$age = $this->filesystem->age($this->data['title']);
9494
if ($age) {
95-
$this->dataAge = gmdate('Y-m-d H:i:s', $age);
95+
$dataAge = gmdate('Y-m-d H:i:s', $age);
9696
}
97-
$this->template->set('dataAge', $this->dataAge);
97+
$this->template->set('dataAge', $dataAge);
9898
$this->template->set('now', gmdate('Y-m-d H:i:s'));
9999
$this->template->set(
100100
'refresh',
@@ -298,11 +298,10 @@ private function removeTemplateTopics()
298298
*/
299299
private function listify($index)
300300
{
301-
if (in_array($index, ['exists', 'missing'])) {
302-
return ''; // skip internal-usage vars
303-
}
304-
if (empty($this->vars[$index])) {
305-
return ' '; // Error - index not found, or index empty
301+
if (in_array($index, ['exists', 'missing']) // skip internal-usage vars
302+
|| empty($this->vars[$index]) // Error - index not found, or index empty
303+
) {
304+
return ' ';
306305
}
307306
$html = '<ol>';
308307
foreach ($this->vars[$index] as $item) {
@@ -323,7 +322,7 @@ private function listify($index)
323322
$class = ' class="missing"';
324323
}
325324
$html .= '<li><a href="'
326-
. $this->template->get('home') . $this->getLink($item) . '"' . $class . '>'
325+
. $this->template->get('home') . $this->getLink($item) . '"' . $class . '>'
327326
. $item . '</a></li>';
328327
}
329328

templates/about.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,43 @@
33
* Just Refs - https://github.com/attogram/justrefs
44
*
55
* About Page template
6-
* @uses $this - Attogram\Justrefs\Template
6+
* @uses $this - \Attogram\Justrefs\Template
77
*/
88

99
$this->include('html_head');
1010
$this->include('header');
1111

1212
?><div class="body">
1313
<h1>
14-
About <b><?= $this->get('name') ?></b> <small>v<?= $this->get('version') ?></small>
14+
About <b><?= $this->get('name') ?></b> <small>v<?= $this->get('version') ?></small>
1515
</h1>
1616
<p>
17-
The <a href="../r/Goal">goal</a> of this <a href="../r/Website">website</a>
18-
is to help <a href="../r/Student">students</a>
19-
and <a href="../r/Research">researchers</a>
20-
by <a href="../r/Information_extraction">extracting</a>
21-
lists of <b><a href="../r/Reference">references</a></b>
22-
and <b><a href="../r/Relation_(history_of_concept)">related topics</a></b>
23-
from any <a href="../r/Web_page">page</a> on the
24-
<a href="../r/English_Wikipedia">English Wikipedia</a>.
17+
The <a href="../r/Goal">goal</a> of this <a href="../r/Website">website</a>
18+
is to help <a href="../r/Student">students</a>
19+
and <a href="../r/Research">researchers</a>
20+
by <a href="../r/Information_extraction">extracting</a>
21+
lists of <b><a href="../r/Reference">references</a></b>
22+
and <b><a href="../r/Relation_(history_of_concept)">related topics</a></b>
23+
from any <a href="../r/Web_page">page</a> on the
24+
<a href="../r/English_Wikipedia">English Wikipedia</a>.
2525
</p>
2626
<p>
27-
This removes the <a href="../r/Distraction">distraction</a> of the
28-
<a href="../r/Prose">prose</a> written by
29-
<a href="../r/Wikipedia_community">others</a>, and allows concentrating on
30-
<a href="../r/Judgement">judging</a> the quality
31-
of the <a href="../r/Reference">references</a>.
27+
This removes the <a href="../r/Distraction">distraction</a> of the
28+
<a href="../r/Prose">prose</a> written by
29+
<a href="../r/Wikipedia_community">others</a>, and allows concentrating on
30+
<a href="../r/Judgement">judging</a> the quality
31+
of the <a href="../r/Reference">references</a>.
3232
</p>
3333
<p>
34-
<b><a href="../"><?= $this->get('name') ?></a></b> is not
35-
<a href="../r/Affiliate_(commerce)">affiliated</a> with the
36-
<a href="../r/Wikimedia_Foundation">Wikimedia Foundation</a>,
37-
or any <a href="../r/List_of_Wikipedias">Wikipedia</a> website.
34+
<b><a href="../"><?= $this->get('name') ?></a></b> is not
35+
<a href="../r/Affiliate_(commerce)">affiliated</a> with the
36+
<a href="../r/Wikimedia_Foundation">Wikimedia Foundation</a>,
37+
or any <a href="../r/List_of_Wikipedias">Wikipedia</a> website.
3838
</p>
3939
<p>
40-
<?= $this->get('name') ?> is an <a href="../r/Open_source">open source</a> project.
41-
Find out more at
42-
&lt;<a href="https://github.com/attogram/justrefs">https://github.com/attogram/justrefs</a>&gt;
40+
<?= $this->get('name') ?> is an <a href="../r/Open_source">open source</a> project.
41+
Find out more at
42+
&lt;<a href="https://github.com/attogram/justrefs">https://github.com/attogram/justrefs</a>&gt;
4343
<p>
4444
</div><?php
4545

templates/footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Just Refs - https://github.com/attogram/justrefs
44
* Footer template
55
*
6-
* @uses $this - Attogram\Justrefs\Template
6+
* @uses $this - \Attogram\Justrefs\Template
77
*/
88
?><footer>
99
<b><a href="<?= $this->get('home') ?>"><?= $this->get('name') ?></a></b>

templates/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Just Refs - https://github.com/attogram/justrefs
44
*
55
* Header template
6-
* @uses $this - Attogram\Justrefs\Template
6+
* @uses $this - \Attogram\Justrefs\Template
77
*/
88
?>
99
<div class="head">

templates/home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Just Refs - https://github.com/attogram/justrefs
44
*
55
* Home Page template
6-
* @uses $this - Attogram\Justrefs\Template
6+
* @uses $this - \Attogram\Justrefs\Template
77
*/
88

99
$this->include('html_head');

templates/html_head.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Just Refs - https://github.com/attogram/justrefs
44
*
55
* HTML head template
6-
* @uses $this - Attogram\Justrefs\Template
6+
* @uses $this - \Attogram\Justrefs\Template
77
*/
88
?><!doctype html>
99
<html lang="en">

templates/topic.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Just Refs - https://github.com/attogram/justrefs
44
*
55
* Topic page template
6-
* @uses $this - Attogram\Justrefs\Template
6+
* @uses $this - \Attogram\Justrefs\Template
77
*/
88

99
$this->include('html_head');
@@ -56,10 +56,11 @@
5656
<div class="lcol" id="help">
5757
<b><?= $this->get('help_count') ?></b> Help:<br /><?= $this->get('help_list') ?>
5858
<hr />
59-
<b><?= $this->get('wikipedia_count') ?></b> Wikipedia:<br /><?= $this->get('wikipedial_list') ?><br />
59+
<b><?= $this->get('wikipedia_count') ?></b> Wikipedia:<br /><?= $this->get('wikipedial_list') ?>
6060
</div>
6161
<div class="rcol" id="template_secondary">
62-
<b><?= $this->get('template_secondary_count') ?></b> Secondary-Templates:<br /><?= $this->get('template_secondary_list') ?><br />
62+
<b><?= $this->get('template_secondary_count') ?></b> Secondary-Templates:
63+
<br /><?= $this->get('template_secondary_list') ?><br />
6364
<hr />
6465
<b><?= $this->get('module_count') ?></b> Modules:<br /><?= $this->get('module_list') ?>
6566
</div>

0 commit comments

Comments
 (0)