Commit 8b171710 authored by Radek Suski's avatar Radek Suski

(#) Workaround for Joomla's faulty base href (Issue #134)

parent bbed4c9a
......@@ -52,6 +52,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
(#) Show correct uninstallation message for modules and plugins when uninstalling via SobiPro application messenger
(#) Template installation does not add the icon fonts correctly
(#) Template installation does not handle select lists with parent groups correctly
(#) Workaround for Joomla's faulty base href (Issue #134)
### 1.4.8 (14 September 2018)
......
......@@ -8,9 +8,10 @@
* Url: http://www.Sigsiu.NET
* @copyright Copyright (C) 2006 - 2015 Sigsiu.NET GmbH (http://www.sigsiu.net). All rights reserved.
* @license GNU/LGPL Version 3
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation, and under the additional terms according section 7 of GPL v3.
* See http://www.gnu.org/licenses/lgpl.html and https://www.sigsiu.net/licenses.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by
* the Free Software Foundation, and under the additional terms according section 7 of GPL v3. See http://www.gnu.org/licenses/lgpl.html and
* https://www.sigsiu.net/licenses. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* $Date$
* $Revision$
* $Author$
......@@ -42,6 +43,7 @@ class SPJ16MainFrame extends SPJoomlaMainFrame implements SPMainframeInterface
/**
* @param string $title
* @param bool $forceAdd
*
* @return void
*/
public function setTitle( $title, $forceAdd = false )
......@@ -74,6 +76,7 @@ class SPJ16MainFrame extends SPJoomlaMainFrame implements SPMainframeInterface
/**
* @param array $head
*
* @return bool
*/
public function addHead( $head )
......@@ -166,6 +169,9 @@ class SPJ16MainFrame extends SPJoomlaMainFrame implements SPMainframeInterface
$document->addCustomTag( "\n\t<script type=\"text/javascript\" src=\"" . str_replace( '&', '&amp;', $jsUrl ) . "\"></script>\n" );
$c++;
$document->addCustomTag( "\n\t<!-- SobiPro ({$c}) Head Tags Output -->\n" );
if ( !( defined( 'SOBIPRO_ADM' ) ) ) {
$document->setBase( Sobi::Cfg( 'live_site' ) );
}
// we would like to set our own canonical please :P
// https://groups.google.com/forum/?fromgroups=#!topic/joomla-dev-cms/sF3-JBQspQU
if ( count( $document->_links ) && $canonicalSet ) {
......@@ -212,7 +218,9 @@ class SPJ16MainFrame extends SPJoomlaMainFrame implements SPMainframeInterface
/**
* Checks for a form token in the request.
*
* @param string $method
*
* @return boolean
*/
public function checkToken( $method = 'post' )
......
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.3.0" method="upgrade" overwrite="true">
<name>SobiPro</name>
<creationDate>6 December 2018</creationDate>
<creationDate>11 December 2018</creationDate>
<author>Sigsiu.NET GmbH</author>
<authorEmail>sobi[at]sigsiu.net</authorEmail>
<authorUrl>https://www.Sigsiu.NET</authorUrl>
<copyright>Copyright (C) 2006-2018 Sigsiu.NET GmbH</copyright>
<license>GNU General Public License v3</license>
<version>1.4.9.D</version>
<version>1.4.9.e</version>
<codename>Owl</codename>
<description>SobiPro directory component for Joomla!</description>
<version_number>1.4.8</version_number>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment