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 2d4ce7d commit af07ad1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions plugins/jsm_bootstrap/jsm_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function __construct(&$subject, $params)

/*
//add the classes for handling
$classpath = JPATH_ADMINISTRATOR . DS . 'components' . DS .
'com_sportsmanagement' . DS . 'libraries' . DS . 'cbootstrap.php';
$classpath = JPATH_ADMINISTRATOR .DIRECTORY_SEPARATOR. 'components' .DIRECTORY_SEPARATOR.
'com_sportsmanagement' .DIRECTORY_SEPARATOR. 'libraries' .DIRECTORY_SEPARATOR. 'cbootstrap.php';
if (file_exists($classpath)) {
JLoader::register('CBootstrap', $classpath);
}
Expand Down Expand Up @@ -226,8 +226,8 @@ public function onAfterDispatch()
//if (JComponentHelper::getComponent('com_k2', true)->enabled) {
if ($is_enabled) {
if (!$app->isAdmin()) {
$css = JUri::base() . 'plugins' . DS . $this->config['type'] . DS . $this->
config['name'] . DS . 'css/customk2.css';
$css = JUri::base() . 'plugins' .DIRECTORY_SEPARATOR. $this->config['type'] .DIRECTORY_SEPARATOR. $this->
config['name'] .DIRECTORY_SEPARATOR. 'css/customk2.css';
$document->addStyleSheet($css);
}
}
Expand Down Expand Up @@ -269,8 +269,8 @@ public function onAfterDispatch()
//if (JComponentHelper::getComponent('com_k2', true)->enabled) {
if ($is_enabled) {
if (!$app->isAdmin()) {
$css = JUri::base() . 'plugins' . DS . $this->config['type'] . DS . $this->
config['name'] . DS . 'css/customk2.css';
$css = JUri::base() . 'plugins' .DIRECTORY_SEPARATOR. $this->config['type'] .DIRECTORY_SEPARATOR. $this->
config['name'] .DIRECTORY_SEPARATOR. 'css/customk2.css';
$document->addStyleSheet($css);
}
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/jsm_ishupdate/jsm_ishupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{
DEFINE( 'JSM_PATH','components/com_sportsmanagement' );
}
require_once(JPATH_SITE.DS.JSM_PATH.DS.'extensions'.DS.'jsminlinehockey'.DS.'admin'.DS.'models'.DS.'jsminlinehockey.php');
require_once(JPATH_SITE.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'extensions'.DIRECTORY_SEPARATOR.'jsminlinehockey'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'models'.DIRECTORY_SEPARATOR.'jsminlinehockey.php');

jimport('joomla.plugin.plugin');
jimport('joomla.html.parameter');
Expand Down Expand Up @@ -114,7 +114,7 @@ public function __construct(&$subject, $params)

if (!class_exists(self::$classname))
{
$file = JPATH_ADMINISTRATOR.DS.JSM_PATH.DS.'helpers'.DS.'sportsmanagement.php';
$file = JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.JSM_PATH.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'sportsmanagement.php';
if (file_exists($file))
{
require_once($file);
Expand Down
6 changes: 3 additions & 3 deletions plugins/jsm_search/search_sportsmanagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

// Import library dependencies
jimport( 'joomla.plugin.plugin' );
require_once(JPATH_SITE.DS.'components'.DS.'com_sportsmanagement'.DS.'helpers'.DS.'countries.php' );
require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_sportsmanagement'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'countries.php' );

// prüft vor Benutzung ob die gewünschte Klasse definiert ist
if ( !class_exists('sportsmanagementHelper') )
{
//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);
JModelLegacy::getInstance("sportsmanagementHelper", "sportsmanagementModel");
}
Expand Down Expand Up @@ -294,7 +294,7 @@ function onContentSearch($text, $phrase = '', $ordering = '', $areas = null)
foreach ($list as $row)
{
//$row->title = JSMCountries::getCountryFlag($row->country).' '.$row->title;
$row->text = '<img src="'.COM_SPORTSMANAGEMENT_PICTURE_SERVER.DS.$row->picture.'" alt="..." class="img-rounded" width="50">'.JSMCountries::getCountryFlag($row->country).' '.$row->text;
$row->text = '<img src="'.COM_SPORTSMANAGEMENT_PICTURE_SERVER.DIRECTORY_SEPARATOR.$row->picture.'" alt="..." class="img-rounded" width="50">'.JSMCountries::getCountryFlag($row->country).' '.$row->text;
}
$rows[] = $list;
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/jw_ts/jw_ts.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function renderTS(&$row, &$params, $page = 0){
JPlugin::loadLanguage('plg_content_'.$this->plg_name, JPATH_ADMINISTRATOR);

// Includes
require_once(dirname(__FILE__).DS.$this->plg_name.DS.'includes'.DS.'helper.php');
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.$this->plg_name.DIRECTORY_SEPARATOR.'includes'.DIRECTORY_SEPARATOR.'helper.php');



Expand Down Expand Up @@ -171,7 +171,7 @@ function renderTS(&$row, &$params, $page = 0){

// Fetch the template
ob_start();
include($pluginTemplateFolderSystem.DS.'sliders.php');
include($pluginTemplateFolderSystem.DIRECTORY_SEPARATOR.'sliders.php');
$getSlidersTemplate = $this->plg_copyrights_start.ob_get_contents().$this->plg_copyrights_end;
ob_end_clean();

Expand Down
6 changes: 3 additions & 3 deletions plugins/jw_ts/jw_ts/includes/elements/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function fetchElement($name, $value, & $node, $control_name) {
$fieldName = (version_compare( JVERSION, '1.6.0', 'ge' )) ? $name : $control_name.'['.$name.']';

if(version_compare(JVERSION,'1.6.0','ge')) {
$pluginTemplatesPath = JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jw_ts'.DS.'jw_ts'.DS.'tmpl';
$pluginTemplatesPath = JPATH_SITE.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.'content'.DIRECTORY_SEPARATOR.'jw_ts'.DIRECTORY_SEPARATOR.'jw_ts'.DIRECTORY_SEPARATOR.'tmpl';
} else {
$pluginTemplatesPath = JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jw_ts'.DS.'tmpl';
$pluginTemplatesPath = JPATH_SITE.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.'content'.DIRECTORY_SEPARATOR.'jw_ts'.DIRECTORY_SEPARATOR.'tmpl';
}
$pluginTemplatesFolders = JFolder::folders($pluginTemplatesPath);

Expand All @@ -51,7 +51,7 @@ function fetchElement($name, $value, & $node, $control_name) {

$db->setQuery($query);
$template = $db->loadResult();
$templatePath = JPATH_SITE.DS.'templates'.DS.$template.DS.'html'.DS.'jw_ts';
$templatePath = JPATH_SITE.DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.$template.DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'jw_ts';

if (JFolder::exists($templatePath)){
$templateFolders = JFolder::folders($templatePath);
Expand Down
8 changes: 4 additions & 4 deletions plugins/jw_ts/jw_ts/includes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ function getTemplatePath($pluginName,$folder){
$p = new JObject;
$pluginGroup = 'content';

if(file_exists(JPATH_SITE.DS.'templates'.DS.$app->getTemplate().DS.'html'.DS.$pluginName.DS.str_replace('/',DS,$folder))){
$p->folder = JPATH_SITE.DS.'templates'.DS.$app->getTemplate().DS.'html'.DS.$pluginName.DS.$folder;
if(file_exists(JPATH_SITE.DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.$app->getTemplate().DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.$pluginName.DIRECTORY_SEPARATOR.str_replace('/',DS,$folder))){
$p->folder = JPATH_SITE.DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.$app->getTemplate().DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.$pluginName.DIRECTORY_SEPARATOR.$folder;
$p->http = JURI::root(true).'/templates/'.$app->getTemplate().'/html/'.$pluginName.'/'.$folder;
} else {
if(version_compare(JVERSION,'1.6.0','ge')) {
// Joomla! 1.6+
$p->folder = JPATH_SITE.DS.'plugins'.DS.$pluginGroup.DS.$pluginName.DS.$pluginName.DS.'tmpl'.DS.$folder;
$p->folder = JPATH_SITE.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.$pluginGroup.DIRECTORY_SEPARATOR.$pluginName.DIRECTORY_SEPARATOR.$pluginName.DIRECTORY_SEPARATOR.'tmpl'.DIRECTORY_SEPARATOR.$folder;
$p->http = JURI::root(true).'/plugins/'.$pluginGroup.'/'.$pluginName.'/'.$pluginName.'/tmpl/'.$folder;
} else {
// Joomla! 1.5
$p->folder = JPATH_SITE.DS.'plugins'.DS.$pluginGroup.DS.$pluginName.DS.'tmpl'.DS.$folder;
$p->folder = JPATH_SITE.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.$pluginGroup.DIRECTORY_SEPARATOR.$pluginName.DIRECTORY_SEPARATOR.'tmpl'.DIRECTORY_SEPARATOR.$folder;
$p->http = JURI::root(true).'/plugins/'.$pluginGroup.'/'.$pluginName.'/tmpl/'.$folder;
}
}
Expand Down

0 comments on commit af07ad1

Please sign in to comment.