Skip to content

Commit

Permalink
Fix url bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPierrre committed May 12, 2018
1 parent 5cbf0db commit 9770b31
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Controller/ForumAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ForumAppController extends AppController

public $atualTheme;

protected $version = '1.4.3';
protected $version = '1.4.4';


protected function date($date, $day = true)
Expand Down
6 changes: 3 additions & 3 deletions Controller/ForumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ public function report()
$msgreports[$key]['MsgReport']['user'] = $this->gUBY($msgreport['MsgReport']['id_user']);
$msgreports[$key]['MsgReport']['date'] = $this->dateAndTime($msgreport['MsgReport']['date']);
$idTopic = $this->Topic->getUniqMessage($msgreport['MsgReport']['id_msg'])['id_topic'];
$msgreports[$key]['MsgReport']['href'] = $this->replaceSpace($this->Topic->getTitleTopic($idTopic)).'.'.$this->Topic->getIdTopic($idTopic);
$msgreports[$key]['MsgReport']['href'] = $this->buildUri('topic', $this->Topic->getTitleTopic($idTopic), $idTopic);
}

$theme = $this->theme();
Expand Down Expand Up @@ -1461,7 +1461,7 @@ public function admin_report()
$msgreports[$key]['MsgReport']['user'] = $this->gUBY($msgreport['MsgReport']['id_user']);
$msgreports[$key]['MsgReport']['date'] = $this->dateAndTime($msgreport['MsgReport']['date']);
$idTopic = $this->Topic->getUniqMessage($msgreport['MsgReport']['id_msg'])['id_topic'];
$msgreports[$key]['MsgReport']['href'] = $this->replaceSpace($this->Topic->getTitleTopic($idTopic)).'.'.$this->Topic->getIdTopic($idTopic);
$msgreports[$key]['MsgReport']['href'] = $this->buildUri('topic', $this->Topic->getTitleTopic($idTopic), $idTopic);
}

$this->set(compact('msgreports'));
Expand All @@ -1480,7 +1480,7 @@ public function admin_topic()
foreach ($topics as $key => $topic) {
$topics[$key]['Topic']['author'] = $this->gUBY($topic['Topic']['id_user']);
$topics[$key]['Topic']['date'] = $this->dateAndTime($topic['Topic']['date']);
$topics[$key]['Topic']['href'] = $this->replaceSpace($topic['Topic']['name']).'.'.$topic['Topic']['id_topic'];
$topics[$key]['Topic']['href'] = $this->buildUri('topic', $topic['Topic']['name'], $topic['Topic']['id_topic']);
}

$this->set(compact('topics'));
Expand Down
2 changes: 1 addition & 1 deletion View/Forum/forum.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
endforeach; ?>

<h3 class="forum-category-title inline">
<a style="color:<?php if(!empty($internal['topic_color'])) echo $internal['topic_color']; ?>" href="<?= h($topic['Topic']['href']); ?>"><?= $this->Text->truncate(h($topic['Topic']['name']), 50); ?></a>
<a style="color:<?php if(!empty($internal['topic_color'])) echo $internal['topic_color']; ?>" href="<?= $topic['Topic']['href']; ?>"><?= $this->Text->truncate(h($topic['Topic']['name']), 50); ?></a>
</h3>
<div class="forum-category-description">
<a href="<?= $this->Html->url('/user/'.$topic['Topic']['author'].'.'.$topic['Topic']['id_user'].'/'); ?>"><?= $topic['Topic']['author']; ?></a>, <?= $topic['Topic']['date']; ?>
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"Forum": "/forum"
},
"author":"PHPierre",
"version":"1.4.3",
"version":"1.4.4",
"apiID":-1,
"useEvents":false,
"permissions" : {
Expand Down

0 comments on commit 9770b31

Please sign in to comment.