Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: coder4life/Kunena-Forum
...
head fork: coder4life/Kunena-Forum
  • 7 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
2  administrator/components/com_kunena/libraries/bbcode/editor.php
@@ -123,7 +123,7 @@ public static function parseXML (SimpleXMLElement $xml) {
}
$class = "KunenaBbcodeEditor" . strtoupper($xml_item->getName());
- $item = call_user_func(array($class, parseXML), $xml_item);
+ $item = call_user_func(array($class, 'parseXML'), $xml_item);
$elements[$item->name] = $item;
}
View
4 administrator/components/com_kunena/libraries/forum/statistics.php
@@ -169,7 +169,7 @@ public function loadTopTopics($limit=0) {
$top = reset($this->topTopics);
foreach ($this->topTopics as $item) {
$item->count = $item->posts;
- $item->link = JHTML::_('kunenaforum.link', $item->getUrl(), KunenaHtmlParser::parseText ($item->subject));
+ $item->link = JHTML::_('kunenaforum.link', $item->getUrl(null, 'object'), KunenaHtmlParser::parseText ($item->subject));
$item->percent = round(100 * $item->count / $top->posts);
}
$top->title = JText::_('COM_KUNENA_STAT_TOP') .' '. $limit .' '. JText::_('COM_KUNENA_STAT_POPULAR') .' '. JText::_('COM_KUNENA_STAT_POPULAR_USER_KGSG');
@@ -235,7 +235,7 @@ public function loadTopPolls($limit=0) {
$top = reset($this->topPolls);
foreach ($this->topPolls as $item) {
$item->count = $polls[$item->id]->count;
- $item->link = JHTML::_('kunenaforum.link', $item->getUrl(), KunenaHtmlParser::parseText ($item->subject));
+ $item->link = JHTML::_('kunenaforum.link', $item->getUrl(null, 'object'), KunenaHtmlParser::parseText ($item->subject));
$item->percent = round(100 * $item->count / $top->count);
}
$top->title = JText::_('COM_KUNENA_STAT_TOP') .' '. $limit .' '. JText::_('COM_KUNENA_STAT_POPULAR') .' '. JText::_('COM_KUNENA_STAT_POPULAR_POLLS_KGSG');
View
4 components/com_kunena/controllers/user.php
@@ -65,7 +65,7 @@ public function save() {
}
// perform security checks
- if ($this->me->id == 0) {
+ if (!$this->me->exists()) {
JError::raiseError( 403, JText::_('Access Forbidden') );
return;
}
@@ -474,4 +474,4 @@ function delfile() {
$this->app->enqueueMessage ( JText::sprintf( 'COM_KUNENA_ATTACHMENTS_DELETE_SUCCESSFULLY', $number) );
$this->redirectBack ();
}
-}
+}

No commit comments for this range

Something went wrong with that request. Please try again.