Skip to content

Commit

Permalink
JED Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Jun 27, 2019
1 parent af07ad1 commit daa96ca
Show file tree
Hide file tree
Showing 51 changed files with 88 additions and 88 deletions.
8 changes: 4 additions & 4 deletions site/controllers/imagehandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Client\ClientHelper;

require_once (JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'imageselect.php');
require_once (JPATH_COMPONENT_SITE .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'imageselect.php');

class sportsmanagementControllerImagehandler extends BaseController {

Expand Down Expand Up @@ -57,7 +57,7 @@ function upload() {
ClientHelper::setCredentialsFromRequest('ftp');

//set the target directory
$base_Dir = JPATH_SITE . DS . 'images' . DS . $option . DS . 'database' . DS . $folder . DS;
$base_Dir = JPATH_SITE .DIRECTORY_SEPARATOR. 'images' .DIRECTORY_SEPARATOR. $option .DIRECTORY_SEPARATOR. 'database' .DIRECTORY_SEPARATOR. $folder . DS;

$app->enqueueMessage(Text::_($type), '');
$app->enqueueMessage(Text::_($folder), '');
Expand Down Expand Up @@ -143,8 +143,8 @@ function delete() {
continue;
}

$fullPath = Path::clean(JPATH_SITE . DS . 'images' . DS . $option . DS . 'database' . DS . $folder . DS . $image);
$fullPaththumb = Path::clean(JPATH_SITE . DS . 'images' . DS . $option . DS . 'database' . DS . $folder . DS . 'small' . DS . $image);
$fullPath = Path::clean(JPATH_SITE .DIRECTORY_SEPARATOR. 'images' .DIRECTORY_SEPARATOR. $option .DIRECTORY_SEPARATOR. 'database' .DIRECTORY_SEPARATOR. $folder .DIRECTORY_SEPARATOR. $image);
$fullPaththumb = Path::clean(JPATH_SITE .DIRECTORY_SEPARATOR. 'images' .DIRECTORY_SEPARATOR. $option .DIRECTORY_SEPARATOR. 'database' .DIRECTORY_SEPARATOR. $folder .DIRECTORY_SEPARATOR. 'small' .DIRECTORY_SEPARATOR. $image);
if (is_file($fullPath)) {
File::delete($fullPath);
if (File::exists($fullPaththumb)) {
Expand Down
2 changes: 1 addition & 1 deletion site/controllers/matches.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Language\Text;

require_once(JPATH_ADMINISTRATOR . DS . JSM_PATH . DS . 'models' . DS . 'match.php');
require_once(JPATH_ADMINISTRATOR .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'models' .DIRECTORY_SEPARATOR. 'match.php');

/**
* sportsmanagementControllermatches
Expand Down
2 changes: 1 addition & 1 deletion site/controllers/predictiongame.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
defined('_JEXEC') or die( 'Restricted access' );
use Joomla\CMS\MVC\Controller\BaseController;

require_once JLG_PATH_EXTENSION_PREDICTIONGAME . DS . 'helpers' . DS . 'route.php' ;
require_once JLG_PATH_EXTENSION_PREDICTIONGAME .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'route.php' ;

/**
* sportsmanagementControllerPredictiongame
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function save() {
{
$upload = Factory::getApplication()->input->getVar ( 'import_package', null, 'files', 'array' );
$tempFilePath = $upload ['tmp_name'];
$dest = JPATH_SITE . DS . 'tmp' . DS . $upload ['name'];
$extractdir = JPATH_SITE . DS . 'tmp';
$importFile = JPATH_SITE . DS . 'tmp' . DS . 'ish_bw_import.xls';
$dest = JPATH_SITE .DIRECTORY_SEPARATOR. 'tmp' .DIRECTORY_SEPARATOR. $upload ['name'];
$extractdir = JPATH_SITE .DIRECTORY_SEPARATOR. 'tmp';
$importFile = JPATH_SITE .DIRECTORY_SEPARATOR. 'tmp' .DIRECTORY_SEPARATOR. 'ish_bw_import.xls';

$app->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' upload<br><pre>'.print_r($upload,true).'</pre>'),'');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function __construct()
if( $mainframe->isClient('administrator') )
{

require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_sportsmanagement'.DS.'libraries'.DS.'PHPExcel'.DS.'PHPExcel.php');
require_once(JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_sportsmanagement'.DIRECTORY_SEPARATOR.'libraries'.DIRECTORY_SEPARATOR.'PHPExcel'.DIRECTORY_SEPARATOR.'PHPExcel.php');
}
parent::__construct();
}
Expand Down Expand Up @@ -196,7 +196,7 @@ function getmatches($projectid=0,$username='',$password='')
$db = Factory::getDbo();
$query = $db->getQuery(true);
//set the target directory
$base_Dir = JPATH_SITE . DS . 'images' . DS . $option . DS .'database'.DS. 'clubs/large' . DS;
$base_Dir = JPATH_SITE .DIRECTORY_SEPARATOR. 'images' .DIRECTORY_SEPARATOR. $option .DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR. 'clubs/large' . DS;
$post = $jinput->post->getArray();
//$app->enqueueMessage(__METHOD__.' '.__LINE__.'post <br><pre>'.print_r($post, true).'</pre><br>','Notice');
$matchlink = '';
Expand Down Expand Up @@ -1330,11 +1330,11 @@ function getdata()
$msg = '';
$post = $jinput->post->getArray(array());

if (File::exists(JPATH_SITE.DS.'tmp'.DS.'ish_bw_import.xls'))
if (File::exists(JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'ish_bw_import.xls'))
{
echo date('H:i:s') , " Load workbook from Excel5 file" , EOL;
$callStartTime = microtime(true);
$objPHPExcel = PHPExcel_IOFactory::load(JPATH_SITE.DS.'tmp'.DS.'ish_bw_import.xls');
$objPHPExcel = PHPExcel_IOFactory::load(JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'ish_bw_import.xls');


/**
Expand Down
2 changes: 1 addition & 1 deletion site/helpers/countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
DEFINE('JSM_PATH', 'components/com_sportsmanagement');
}

require_once(JPATH_ADMINISTRATOR . DS . JSM_PATH . DS . 'helpers' . DS . 'sportsmanagement.php');
require_once(JPATH_ADMINISTRATOR .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'sportsmanagement.php');

$maxImportTime = 480;
if ((int) ini_get('max_execution_time') < $maxImportTime) {
Expand Down
2 changes: 1 addition & 1 deletion site/helpers/ranking.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static function getInstance($project = null,$cfg_which_database = 0)
$classname = 'JSMRanking'. ucfirst($type);
if (!class_exists($classname))
{
$file = JPATH_COMPONENT_SITE.DS.'extensions'.DS.$type.DS.'ranking.php';
$file = JPATH_COMPONENT_SITE.DIRECTORY_SEPARATOR.'extensions'.DIRECTORY_SEPARATOR.$type.DIRECTORY_SEPARATOR.'ranking.php';
if (file_exists($file))
{
require_once($file);
Expand Down
8 changes: 4 additions & 4 deletions site/helpers/simpleGMapGeocoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function genkml3file($id, $address_string, $type, $picture, $name,$latitude = 25

// mal als test
$xmlfile = $kmlOutput;
$file = JPATH_SITE.DS.'tmp'.DS.$id.'-'.$type.'.kml';
$file = JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$id.'-'.$type.'.kml';
File::write($file, $xmlfile);


Expand Down Expand Up @@ -510,7 +510,7 @@ function writekml3prediction($allmembers,$project_id,$type)
$kml[] = ' <Icon>';


$picturepath = JPATH_SITE.DS.$row->avatar;
$picturepath = JPATH_SITE.DIRECTORY_SEPARATOR.$row->avatar;

/*
echo 'writekml3prediction picturepath<br><pre>';
Expand Down Expand Up @@ -569,7 +569,7 @@ function writekml3prediction($allmembers,$project_id,$type)

// mal als test
$xmlfile = $kmlOutput;
$file = JPATH_SITE.DS.'tmp'.DS.$project_id.'-'.$type.'.kml';
$file = JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$project_id.'-'.$type.'.kml';
File::write($file, $xmlfile);

}
Expand Down Expand Up @@ -645,7 +645,7 @@ function writekml3($allteams,$project_id,$type)

// mal als test
$xmlfile = $kmlOutput;
$file = JPATH_SITE.DS.'tmp'.DS.$project_id.'-'.$type.'.kml';
$file = JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$project_id.'-'.$type.'.kml';
File::write($file, $xmlfile);

}
Expand Down
8 changes: 4 additions & 4 deletions site/models/imagehandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function getList()
$search = $this->getState('search');

// Initialize variables
$basePath = JPATH_SITE.DS.'images'.DS.$option.DS.'database'.DS.$folder;
$basePath = JPATH_SITE.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.$option.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.$folder;

$images = array ();

Expand All @@ -141,7 +141,7 @@ function getList()
if ($fileList !== false) {
foreach ($fileList as $file)
{
if (is_file($basePath.DS.$file) && substr($file, 0, 1) != '.'
if (is_file($basePath.DIRECTORY_SEPARATOR.$file) && substr($file, 0, 1) != '.'
&& strtolower($file) !== 'index.html'
&& strtolower($file) !== 'thumbs.db'
&& strtolower($file) !== 'readme.txt'
Expand All @@ -152,14 +152,14 @@ function getList()
if ( $search == '') {
$tmp = new JObject();
$tmp->name = $file;
$tmp->path = Path::clean($basePath.DS.$file);
$tmp->path = Path::clean($basePath.DIRECTORY_SEPARATOR.$file);

$images[] = $tmp;

} elseif(stristr( $file, $search)) {
$tmp = new JObject();
$tmp->name = $file;
$tmp->path = Path::clean($basePath.DS.$file);
$tmp->path = Path::clean($basePath.DIRECTORY_SEPARATOR.$file);

$images[] = $tmp;

Expand Down
4 changes: 2 additions & 2 deletions site/models/jlxmlexports.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ public function exportData()
}
}
$l98filename = OutputFilter::stringURLSafe($filename[0])."-".date("ymd-His");
$file = JPATH_SITE.DS.'tmp'.DS.$user->username.DS.OutputFilter::stringURLSafe($filename[0]).'.jlg';
$file = JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$user->username.DIRECTORY_SEPARATOR.OutputFilter::stringURLSafe($filename[0]).'.jlg';

$userpath = JPATH_SITE.DS.'tmp'.DS.$user->username;
$userpath = JPATH_SITE.DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$user->username;
if ( Folder::exists($userpath) )
{
}
Expand Down
12 changes: 6 additions & 6 deletions site/models/matchreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ function getRound()
*/
function getMatchPictures($folder)
{
$basePath = JPATH_SITE.DS.'images'.DS.'com_sportsmanagement'.DS.'database'.DS.$folder;
$sitePath = 'images'.DS.'com_sportsmanagement'.DS.'database'.DS.$folder;
$basePath = JPATH_SITE.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.'com_sportsmanagement'.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.$folder;
$sitePath = 'images'.DIRECTORY_SEPARATOR.'com_sportsmanagement'.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.$folder;
$images = array ();


Expand All @@ -209,7 +209,7 @@ function getMatchPictures($folder)
if ($fileList !== false) {
foreach ($fileList as $file)
{
if (is_file($basePath.DS.$file) && substr($file, 0, 1) != '.'
if (is_file($basePath.DIRECTORY_SEPARATOR.$file) && substr($file, 0, 1) != '.'
&& strtolower($file) !== 'index.html'
&& strtolower($file) !== 'thumbs.db'
&& strtolower($file) !== 'readme.txt'
Expand All @@ -221,15 +221,15 @@ function getMatchPictures($folder)
$tmp = new JObject();
$tmp->name = $file;
$tmp->sitepath = $sitePath;
$tmp->path = Path::clean($basePath.DS.$file);
$tmp->path = Path::clean($basePath.DIRECTORY_SEPARATOR.$file);

$images[] = $tmp;

} elseif(stristr( $file, $search)) {
$tmp = new JObject();
$tmp->name = $file;
$tmp->sitepath = $sitePath;
$tmp->path = Path::clean($basePath.DS.$file);
$tmp->path = Path::clean($basePath.DIRECTORY_SEPARATOR.$file);

$images[] = $tmp;

Expand Down Expand Up @@ -755,7 +755,7 @@ function getPlaygroundSchema($schema,$which)
}
if ( $res )
{
$xmlfile = JPATH_COMPONENT_ADMINISTRATOR.DS.'assets'.DS.'extended'.DS.'rosterposition.xml';
$xmlfile = JPATH_COMPONENT_ADMINISTRATOR.DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'extended'.DIRECTORY_SEPARATOR.'rosterposition.xml';
$jRegistry = new Registry;
if(version_compare(JVERSION,'3.0.0','ge'))
{
Expand Down
2 changes: 1 addition & 1 deletion site/models/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ function getPlayerStatsByGame() {
foreach ($pos_stats as $stat) {
if (!empty($stat)) {
if ( isset($stat->_showinsinglematchreports) ) {
require_once(JPATH_ADMINISTRATOR . DS . JSM_PATH . DS . 'statistics' . DS .$stat->_name. '.php');
require_once(JPATH_ADMINISTRATOR .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'statistics' .DIRECTORY_SEPARATOR.$stat->_name. '.php');
$mdlstats = BaseDatabaseModel::getInstance($stat->_name, "SMStatistic");
$mdlstats->id = $stat->id;
$stat->gamesstats = $mdlstats->getPlayerStatsByGame($teamplayer_ids, $project_id);
Expand Down
2 changes: 1 addition & 1 deletion site/models/prediction.php
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ function sendMembershipConfirmation($cid=array())
//echo '<br /><pre>~'.print_r($mailer,true).'~</pre><br />';

// Optional file attached
//$mailer->addAttachment(PATH_COMPONENT.DS.'assets'.DS.'document.pdf');
//$mailer->addAttachment(PATH_COMPONENT.DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'document.pdf');

//Sending the mail
$send = $mailer->Send();
Expand Down
4 changes: 2 additions & 2 deletions site/models/project.php
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ public static function getTemplateConfig($template,$cfg_which_database = 0,$call
$paramsdata = "";
$arrStandardSettings = array();

$xmlfile = JPATH_COMPONENT_SITE.DS.'settings'.DS.'default'.DS.$template.'.xml';
$xmlfile = JPATH_COMPONENT_SITE.DIRECTORY_SEPARATOR.'settings'.DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.$template.'.xml';

if( self::$projectid == 0) return $arrStandardSettings;

Expand Down Expand Up @@ -1327,7 +1327,7 @@ public static function getProjectStats($statid=0,$positionid=0,$cfg_which_databa

if (empty(self::$_stats))
{
require_once (JPATH_ADMINISTRATOR.DS.JSM_PATH.DS.'statistics'.DS.'base.php');
require_once (JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'statistics'.DIRECTORY_SEPARATOR.'base.php');
$project = self::getProject($cfg_which_database,__METHOD__);
$project_id = $project->id;
$query->select('ppos.id as pposid,ppos.position_id AS position_id');
Expand Down
6 changes: 3 additions & 3 deletions site/models/rankingalltime.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function __construct()
$jinput = $app->input;
$this->alltimepoints = $jinput->request->get('points', '3,1,0', 'STR');

$file = JPATH_SITE.DS.JSM_PATH.DS.'helpers'.DS.'ranking.php';
$file = JPATH_SITE.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'ranking.php';
require_once($file);

$menu = JMenu::getInstance('site');
Expand Down Expand Up @@ -106,8 +106,8 @@ function __construct()
}
else
{
//$strXmlFile = JPATH_SITE.DS.JSM_PATH.DS.'settings'.DS.'default'.DS.'rankingalltime.xml';
$strXmlFile = JPATH_SITE.DS.JSM_PATH.DS.'views'.DS.'rankingalltime'.DS.'tmpl'.DS.'default.xml';
//$strXmlFile = JPATH_SITE.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'settings'.DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.'rankingalltime.xml';
$strXmlFile = JPATH_SITE.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'rankingalltime'.DIRECTORY_SEPARATOR.'tmpl'.DIRECTORY_SEPARATOR.'default.xml';
//$xml = simplexml_load_file($strXmlFile);

$xml=Factory::getXML($strXmlFile);
Expand Down
2 changes: 1 addition & 1 deletion site/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* add the classes for handling
*/
$classpath = JPATH_ADMINISTRATOR . DS . JSM_PATH . DS . 'helpers' . DS . 'sportsmanagement.php';
$classpath = JPATH_ADMINISTRATOR .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'sportsmanagement.php';
JLoader::register('sportsmanagementHelper', $classpath);
BaseDatabaseModel::getInstance("sportsmanagementHelper", "sportsmanagementModel");
}
Expand Down
4 changes: 2 additions & 2 deletions site/sportsmanagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
/**
* add the classes for handling
*/
$classpath = JPATH_ADMINISTRATOR . DS . JSM_PATH . DS . 'helpers' . DS . 'sportsmanagement.php';
$classpath = JPATH_ADMINISTRATOR .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'sportsmanagement.php';
JLoader::register('sportsmanagementHelper', $classpath);
BaseDatabaseModel::getInstance("sportsmanagementHelper", "sportsmanagementModel");
}
Expand Down Expand Up @@ -281,7 +281,7 @@
DEFINE('COM_SPORTSMANAGEMENT_SHOW_BUGTRACKER_SERVER', ComponentHelper::getParams($option)->get('cfg_bugtracker_server', ''));
DEFINE('COM_SPORTSMANAGEMENT_SHOW_VIEW', $view);

require_once( JPATH_SITE . DS . JSM_PATH . DS . 'controller.php' );
require_once( JPATH_SITE .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'controller.php' );
// Component Helper
jimport('joomla.application.component.helper');
$controller = null;
Expand Down
2 changes: 1 addition & 1 deletion site/views/allclubs/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
echo $item->name;
}

if (!File::exists(JPATH_SITE . DS . $item->logo_big)) {
if (!File::exists(JPATH_SITE .DIRECTORY_SEPARATOR. $item->logo_big)) {
$item->logo_big = sportsmanagementHelper::getDefaultPlaceholder("clublogobig");
}
?>
Expand Down
2 changes: 1 addition & 1 deletion site/views/allclubs/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* add the classes for handling
*/
$classpath = JPATH_SITE . DS . JSM_PATH . DS . 'helpers' . DS . 'html.php';
$classpath = JPATH_SITE .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'html.php';
JLoader::register('sportsmanagementHelperHtml', $classpath);
}

Expand Down
2 changes: 1 addition & 1 deletion site/views/allleagues/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
echo $item->name;
}

if (!File::exists(JPATH_SITE . DS . $item->picture)) {
if (!File::exists(JPATH_SITE .DIRECTORY_SEPARATOR. $item->picture)) {
$item->picture = sportsmanagementHelper::getDefaultPlaceholder("clublogobig");
}
?>
Expand Down
2 changes: 1 addition & 1 deletion site/views/allleagues/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// pr�ft vor Benutzung ob die gew�nschte Klasse definiert ist
if (!class_exists('sportsmanagementHelperHtml')) {
//add the classes for handling
$classpath = JPATH_SITE . DS . JSM_PATH . DS . 'helpers' . DS . 'html.php';
$classpath = JPATH_SITE .DIRECTORY_SEPARATOR. JSM_PATH .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'html.php';
JLoader::register('sportsmanagementHelperHtml', $classpath);
}

Expand Down
2 changes: 1 addition & 1 deletion site/views/allpersons/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if ( !class_exists('sportsmanagementHelperHtml') )
{
//add the classes for handling
$classpath = JPATH_SITE.DS.JSM_PATH.DS.'helpers'.DS.'html.php';
$classpath = JPATH_SITE.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'html.php';
JLoader::register('sportsmanagementHelperHtml', $classpath);
}

Expand Down
2 changes: 1 addition & 1 deletion site/views/allplaygrounds/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
echo $item->name;
}

if ( !File::exists(JPATH_SITE.DS.$item->picture) )
if ( !File::exists(JPATH_SITE.DIRECTORY_SEPARATOR.$item->picture) )
{
$item->picture = sportsmanagementHelper::getDefaultPlaceholder("clublogobig");
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/allplaygrounds/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if ( !class_exists('sportsmanagementHelperHtml') )
{
//add the classes for handling
$classpath = JPATH_SITE.DS.JSM_PATH.DS.'helpers'.DS.'html.php';
$classpath = JPATH_SITE.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'html.php';
JLoader::register('sportsmanagementHelperHtml', $classpath);
}

Expand Down
2 changes: 1 addition & 1 deletion site/views/allprojects/tmpl/default_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
echo $item->name;
}

if ( !File::exists(JPATH_SITE.DS.$item->picture) )
if ( !File::exists(JPATH_SITE.DIRECTORY_SEPARATOR.$item->picture) )
{
$item->picture = sportsmanagementHelper::getDefaultPlaceholder("clublogobig");
}
Expand Down
Loading

0 comments on commit daa96ca

Please sign in to comment.