Skip to content

Commit

Permalink
Fixing categories view and adding updateserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Mar 24, 2017
1 parent d05b83f commit 2be82b4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions classes/contactrouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public function getCategorySegment($id, $query)
if ($category)
{
$path = array_reverse($category->getPath(), true);

if (!count($path))
{
$path[$category->id] = $category->slug;
}

$path[0] = '1:root';

if ($this->noIDs)
Expand Down
6 changes: 6 additions & 0 deletions classes/contentrouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ public function getCategorySegment($id, $query)
if ($category)
{
$path = array_reverse($category->getPath(), true);

if (!count($path))
{
$path[$category->id] = $category->slug;
}

$path[0] = '1:root';

if ($this->noIDs)
Expand Down
6 changes: 6 additions & 0 deletions classes/newsfeedrouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public function getCategorySegment($id, $query)
if ($category)
{
$path = array_reverse($category->getPath(), true);

if (!count($path))
{
$path[$category->id] = $category->slug;
}

$path[0] = '1:root';

if ($this->noIDs)
Expand Down
5 changes: 4 additions & 1 deletion jlrouter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlager.de</authorUrl>
<version>1.0.0</version>
<version>1.1.0</version>
<description>PLG_SYSTEM_JLROUTER_XML_DESCRIPTION</description>
<files>
<filename plugin="jlrouter">jlrouter.php</filename>
<folder>classes</folder>
<folder>language</folder>
</files>
<updateservers>
<server name="Joomlager Router" type="collection">https://www.joomlager.de/updates/updates.xml</server>
</updateservers>
<config>
<fields name="params">
<fieldset name="basic">
Expand Down

0 comments on commit 2be82b4

Please sign in to comment.