GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( d80144...902697 )
by gyeong-won
12:23
created

rssView::rss()   F

Complexity

Conditions 42
Paths > 20000

Size

Total Lines 184
Code Lines 117

Duplication

Lines 16
Ratio 8.7 %

Importance

Changes 0
Metric Value
cc 42
eloc 117
nc 3289093
nop 3
dl 16
loc 184
rs 2
c 0
b 0
f 0

How to fix   Long Method    Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
/**
4
 * The view class of the rss module
5
 *
6
 * @author NAVER ([email protected])
7
 */
8
class rssView extends rss
9
{
10
	/**
11
	 * Initialization
12
	 *
13
	 * @return void
14
	 */
15
	function init()
16
	{
17
	}
18
19
	/**
20
	 * Feed output.
21
	 * When trying to directly print out the RSS, the results variable can be directly specified through $oRssView->rss($document_list)
22
	 *
23
	 * @param Object $document_list Document list 
24
	 * @param string $rss_title Rss title
25
	 * @param string $add_description Add description
26
	 */
27
	function rss($document_list = null, $rss_title = null, $add_description = null)
28
	{
29
		$oDocumentModel = getModel('document');
30
		$oModuleModel = getModel('module');
31
		$oModuleController = getController('module');
32
		// Get the content and information for the current requested module if the method is not called from another module
33
		if(!$document_list)
34
		{
35
			$site_module_info = Context::get('site_module_info');
36
			$site_srl = $site_module_info->site_srl;
37
			$mid = Context::get('mid'); // The target module id, if absent, then all
38
			$start_date = (int)Context::get('start_date');
39
			$end_date = (int)Context::get('end_date');
40
41
			$module_srls = array();
42
			$rss_config = array();
0 ignored issues
show
Unused Code introduced by
$rss_config is not used, you could remove the assignment.

This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.

$myVar = 'Value';
$higher = false;

if (rand(1, 6) > 3) {
    $higher = true;
} else {
    $higher = false;
}

Both the $myVar assignment in line 1 and the $higher assignment in line 2 are dead. The first because $myVar is never used and the second because $higher is always overwritten for every possible time line.

Loading history...
43
			$total_config = '';
0 ignored issues
show
Unused Code introduced by
$total_config is not used, you could remove the assignment.

This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.

$myVar = 'Value';
$higher = false;

if (rand(1, 6) > 3) {
    $higher = true;
} else {
    $higher = false;
}

Both the $myVar assignment in line 1 and the $higher assignment in line 2 are dead. The first because $myVar is never used and the second because $higher is always overwritten for every possible time line.

Loading history...
44
			$total_config = $oModuleModel->getModuleConfig('rss');
45
			// If one is specified, extract only for this mid
46
			if($mid)
47
			{
48
				$module_srl = $this->module_info->module_srl;
0 ignored issues
show
Bug introduced by
The property module_info cannot be accessed from this context as it is declared private in class ModuleObject.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
49
				$config = $oModuleModel->getModulePartConfig('rss', $module_srl);
50 View Code Duplication
				if($config->open_rss && $config->open_rss != 'N')
51
				{
52
					$module_srls[] = $module_srl; 
53
					$open_rss_config[$module_srl] = $config->open_rss;
0 ignored issues
show
Coding Style Comprehensibility introduced by
$open_rss_config was never initialized. Although not strictly required by PHP, it is generally a good practice to add $open_rss_config = array(); before regardless.

Adding an explicit array definition is generally preferable to implicit array definition as it guarantees a stable state of the code.

Let’s take a look at an example:

foreach ($collection as $item) {
    $myArray['foo'] = $item->getFoo();

    if ($item->hasBar()) {
        $myArray['bar'] = $item->getBar();
    }

    // do something with $myArray
}

As you can see in this example, the array $myArray is initialized the first time when the foreach loop is entered. You can also see that the value of the bar key is only written conditionally; thus, its value might result from a previous iteration.

This might or might not be intended. To make your intention clear, your code more readible and to avoid accidental bugs, we recommend to add an explicit initialization $myArray = array() either outside or inside the foreach loop.

Loading history...
54
				}
55
				// If mid is not selected, then get all
56
			}
57
			else
58
			{
59
				if($total_config->use_total_feed != 'N')
60
				{
61
					$rss_config = $oModuleModel->getModulePartConfigs('rss', $site_srl);
62
					if($rss_config)
63
					{
64
						foreach($rss_config as $module_srl => $config)
65
						{
66 View Code Duplication
							if($config && $config->open_rss != 'N' && $config->open_total_feed != 'T_N')
67
							{
68
								$module_srls[] = $module_srl;
69
								$open_rss_config[$module_srl] = $config->open_rss;
0 ignored issues
show
Coding Style Comprehensibility introduced by
$open_rss_config was never initialized. Although not strictly required by PHP, it is generally a good practice to add $open_rss_config = array(); before regardless.

Adding an explicit array definition is generally preferable to implicit array definition as it guarantees a stable state of the code.

Let’s take a look at an example:

foreach ($collection as $item) {
    $myArray['foo'] = $item->getFoo();

    if ($item->hasBar()) {
        $myArray['bar'] = $item->getBar();
    }

    // do something with $myArray
}

As you can see in this example, the array $myArray is initialized the first time when the foreach loop is entered. You can also see that the value of the bar key is only written conditionally; thus, its value might result from a previous iteration.

This might or might not be intended. To make your intention clear, your code more readible and to avoid accidental bugs, we recommend to add an explicit initialization $myArray = array() either outside or inside the foreach loop.

Loading history...
70
							}
71
						}
72
					}
73
				}
74
			}
75
76
			if(!count($module_srls) && !$add_description) return $this->dispError();
0 ignored issues
show
Bug Best Practice introduced by
The expression $add_description of type string|null is loosely compared to false; this is ambiguous if the string can be empty. You might want to explicitly use === null instead.

In PHP, under loose comparison (like ==, or !=, or switch conditions), values of different types might be equal.

For string values, the empty string '' is a special case, in particular the following results might be unexpected:

''   == false // true
''   == null  // true
'ab' == false // false
'ab' == null  // false

// It is often better to use strict comparison
'' === false // false
'' === null  // false
Loading history...
77
78
			$info = new stdClass;
79
			$args = new stdClass;
80
81
			if($module_srls)
0 ignored issues
show
Bug Best Practice introduced by
The expression $module_srls of type array is implicitly converted to a boolean; are you sure this is intended? If so, consider using ! empty($expr) instead to make it clear that you intend to check for an array without elements.

This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.

Consider making the comparison explicit by using empty(..) or ! empty(...) instead.

Loading history...
82
			{
83
				$args->module_srl = implode(',',$module_srls);
84
				//$module_list = $oModuleModel->getMidList($args);	//perhaps module_list varialbles not use
85
86
				$args->search_target = 'is_secret';
87
				$args->search_keyword = 'N';
88
				$args->page = (int)Context::get('page');
89
				$args->list_count = 15;
90
				if($total_config->feed_document_count) $args->list_count = $total_config->feed_document_count;
91
				if(!$args->page || $args->page < 1) $args->page = 1;
92
				if($start_date || $start_date != 0) $args->start_date = $start_date;
93
				if($end_date || $end_date != 0) $args->end_date = $end_date;
94
				if($start_date == 0) unset($start_date);
95
				if($end_date == 0) unset($end_date);
96
97
				$args->sort_index = 'list_order'; 
98
				$args->order_type = 'asc';
99
				$output = $oDocumentModel->getDocumentList($args);
100
				$document_list = $output->data;
101
				// Extract the feed title and information with Context::getBrowserTitle
102
				if($mid)
103
				{
104
					$info->title = Context::getBrowserTitle();
105
					$oModuleController->replaceDefinedLangCode($info->title);
106
107
					$info->title = str_replace('\'', '&apos;',$info->title);
108
					if($config->feed_description)
109
					{
110
						$info->description = str_replace('\'', '&apos;', htmlspecialchars($config->feed_description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
0 ignored issues
show
Bug introduced by
The variable $config does not seem to be defined for all execution paths leading up to this point.

If you define a variable conditionally, it can happen that it is not defined for all execution paths.

Let’s take a look at an example:

function myFunction($a) {
    switch ($a) {
        case 'foo':
            $x = 1;
            break;

        case 'bar':
            $x = 2;
            break;
    }

    // $x is potentially undefined here.
    echo $x;
}

In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.

Available Fixes

  1. Check for existence of the variable explicitly:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        if (isset($x)) { // Make sure it's always set.
            echo $x;
        }
    }
    
  2. Define a default value for the variable:

    function myFunction($a) {
        $x = ''; // Set a default which gets overridden for certain paths.
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        echo $x;
    }
    
  3. Add a value for the missing path:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
    
            // We add support for the missing case.
            default:
                $x = '';
                break;
        }
    
        echo $x;
    }
    
Loading history...
111
					}
112
					else
113
					{
114
						$info->description = str_replace('\'', '&apos;', htmlspecialchars($this->module_info->description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
0 ignored issues
show
Bug introduced by
The property module_info cannot be accessed from this context as it is declared private in class ModuleObject.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
115
					}
116
					$info->link = getUrl('','mid',$mid);
117
					$info->feed_copyright = str_replace('\'', '&apos;', htmlspecialchars($feed_config->feed_copyright, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
0 ignored issues
show
Bug introduced by
The variable $feed_config does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
118 View Code Duplication
					if(!$info->feed_copyright)
119
					{
120
						$info->feed_copyright = str_replace('\'', '&apos;', htmlspecialchars($total_config->feed_copyright, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
121
					}
122
				}
123
			}
124
		}
125
126
		if(!$info->title)
127
		{
128
			if($rss_title) $info->title = $rss_title;
0 ignored issues
show
Bug introduced by
The variable $info does not seem to be defined for all execution paths leading up to this point.

If you define a variable conditionally, it can happen that it is not defined for all execution paths.

Let’s take a look at an example:

function myFunction($a) {
    switch ($a) {
        case 'foo':
            $x = 1;
            break;

        case 'bar':
            $x = 2;
            break;
    }

    // $x is potentially undefined here.
    echo $x;
}

In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.

Available Fixes

  1. Check for existence of the variable explicitly:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        if (isset($x)) { // Make sure it's always set.
            echo $x;
        }
    }
    
  2. Define a default value for the variable:

    function myFunction($a) {
        $x = ''; // Set a default which gets overridden for certain paths.
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        echo $x;
    }
    
  3. Add a value for the missing path:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
    
            // We add support for the missing case.
            default:
                $x = '';
                break;
        }
    
        echo $x;
    }
    
Loading history...
Bug Best Practice introduced by
The expression $rss_title of type string|null is loosely compared to true; this is ambiguous if the string can be empty. You might want to explicitly use !== null instead.

In PHP, under loose comparison (like ==, or !=, or switch conditions), values of different types might be equal.

For string values, the empty string '' is a special case, in particular the following results might be unexpected:

''   == false // true
''   == null  // true
'ab' == false // false
'ab' == null  // false

// It is often better to use strict comparison
'' === false // false
'' === null  // false
Loading history...
129
			else if($total_config->feed_title) $info->title = $total_config->feed_title;
0 ignored issues
show
Bug introduced by
The variable $total_config does not seem to be defined for all execution paths leading up to this point.

If you define a variable conditionally, it can happen that it is not defined for all execution paths.

Let’s take a look at an example:

function myFunction($a) {
    switch ($a) {
        case 'foo':
            $x = 1;
            break;

        case 'bar':
            $x = 2;
            break;
    }

    // $x is potentially undefined here.
    echo $x;
}

In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.

Available Fixes

  1. Check for existence of the variable explicitly:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        if (isset($x)) { // Make sure it's always set.
            echo $x;
        }
    }
    
  2. Define a default value for the variable:

    function myFunction($a) {
        $x = ''; // Set a default which gets overridden for certain paths.
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        echo $x;
    }
    
  3. Add a value for the missing path:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
    
            // We add support for the missing case.
            default:
                $x = '';
                break;
        }
    
        echo $x;
    }
    
Loading history...
130
			else
131
			{
132
				$site_module_info = Context::get('site_module_info');
133
				$info->title = $site_module_info->browser_title;
134
			}
135
136
			$oModuleController->replaceDefinedLangCode($info->title);
137
			$info->title = str_replace('\'', '&apos;', htmlspecialchars($info->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
138
			$info->description = str_replace('\'', '&apos;', htmlspecialchars($total_config->feed_description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
139
			$info->link = Context::getRequestUri();
140
			$info->feed_copyright = str_replace('\'', '&apos;', htmlspecialchars($total_config->feed_copyright, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
141
		}
142
		if($add_description) $info->description .= "\r\n".$add_description;
0 ignored issues
show
Bug Best Practice introduced by
The expression $add_description of type string|null is loosely compared to true; this is ambiguous if the string can be empty. You might want to explicitly use !== null instead.

In PHP, under loose comparison (like ==, or !=, or switch conditions), values of different types might be equal.

For string values, the empty string '' is a special case, in particular the following results might be unexpected:

''   == false // true
''   == null  // true
'ab' == false // false
'ab' == null  // false

// It is often better to use strict comparison
'' === false // false
'' === null  // false
Loading history...
143
144 View Code Duplication
		if($total_config->image) $info->image = Context::getRequestUri().str_replace('\'', '&apos;', htmlspecialchars($total_config->image, ENT_COMPAT | ENT_HTML401, 'UTF-8', false));
145
		switch(Context::get('format'))
146
		{
147
			case 'atom':
148
				$info->date = date('Y-m-d\TH:i:sP');
149
				if($mid) { $info->id = getUrl('','mid',$mid,'act','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); }
0 ignored issues
show
Bug introduced by
The variable $mid does not seem to be defined for all execution paths leading up to this point.

If you define a variable conditionally, it can happen that it is not defined for all execution paths.

Let’s take a look at an example:

function myFunction($a) {
    switch ($a) {
        case 'foo':
            $x = 1;
            break;

        case 'bar':
            $x = 2;
            break;
    }

    // $x is potentially undefined here.
    echo $x;
}

In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.

Available Fixes

  1. Check for existence of the variable explicitly:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        if (isset($x)) { // Make sure it's always set.
            echo $x;
        }
    }
    
  2. Define a default value for the variable:

    function myFunction($a) {
        $x = ''; // Set a default which gets overridden for certain paths.
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        echo $x;
    }
    
  3. Add a value for the missing path:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
    
            // We add support for the missing case.
            default:
                $x = '';
                break;
        }
    
        echo $x;
    }
    
Loading history...
150 View Code Duplication
				else { $info->id = getUrl('','module','rss','act','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); }
151
				break;
152
			case 'rss1.0':
153
				$info->date = date('Y-m-d\TH:i:sP');
154
				break;
155
			default:
156
				$info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone'];
157
				break;
158
		}
159
160
		if($_SERVER['HTTPS']=='on') $proctcl = 'https://';
161
		else $proctcl = 'http://';
162
163
		$temp_link = explode('/', $info->link);
164
		if($temp_link[0]=='' && $info->link)
165
		{
166
			$info->link = $proctcl.$_SERVER['HTTP_HOST'].$info->link;
167
		}
168
169
		$temp_id = explode('/', $info->id);
170
		if($temp_id[0]=='' && $info->id)
171
		{
172
			$info->id = $proctcl.$_SERVER['HTTP_HOST'].$info->id;
173
		}
174
175
		$info->language = str_replace('jp','ja',Context::getLangType());
176
		// Set the variables used in the RSS output
177
		Context::set('info', $info);
0 ignored issues
show
Documentation introduced by
$info is of type object<stdClass>, but the function expects a string.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
178
		Context::set('feed_config', $config);
179
		Context::set('open_rss_config', $open_rss_config);
0 ignored issues
show
Bug introduced by
The variable $open_rss_config does not seem to be defined for all execution paths leading up to this point.

If you define a variable conditionally, it can happen that it is not defined for all execution paths.

Let’s take a look at an example:

function myFunction($a) {
    switch ($a) {
        case 'foo':
            $x = 1;
            break;

        case 'bar':
            $x = 2;
            break;
    }

    // $x is potentially undefined here.
    echo $x;
}

In the above example, the variable $x is defined if you pass “foo” or “bar” as argument for $a. However, since the switch statement has no default case statement, if you pass any other value, the variable $x would be undefined.

Available Fixes

  1. Check for existence of the variable explicitly:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        if (isset($x)) { // Make sure it's always set.
            echo $x;
        }
    }
    
  2. Define a default value for the variable:

    function myFunction($a) {
        $x = ''; // Set a default which gets overridden for certain paths.
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
        }
    
        echo $x;
    }
    
  3. Add a value for the missing path:

    function myFunction($a) {
        switch ($a) {
            case 'foo':
                $x = 1;
                break;
    
            case 'bar':
                $x = 2;
                break;
    
            // We add support for the missing case.
            default:
                $x = '';
                break;
        }
    
        echo $x;
    }
    
Loading history...
Documentation introduced by
$open_rss_config is of type array<?,?>, but the function expects a string.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
180
		Context::set('document_list', $document_list);
181
		// Force the result output to be of XMLRPC
182
		Context::setResponseMethod("XMLRPC");
183
		// Perform the preprocessing function of the editor component as the results are obtained
184
		$path = $this->module_path.'tpl/';
0 ignored issues
show
Bug introduced by
The property module_path cannot be accessed from this context as it is declared private in class ModuleObject.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
185
		//if($args->start_date || $args->end_date) $file = 'xe_rss';
186
		//else $file = 'rss20';
187
		switch (Context::get('format'))
188
		{
189
			case 'xe':
190
				$file = 'xe_rss';
191
				break;
192
			case 'atom':
193
				$file = 'atom10';
194
				break;
195
			case 'rss1.0':
196
				$file = 'rss10';
197
				break;
198
			default:
199
				$file = 'rss20';
200
				break;
201
		}
202
203
		$oTemplate = new TemplateHandler();
204
205
		$content = $oTemplate->compile($path, $file);
206
		Context::set('content', $content);
207
		// Set the template file
208
		$this->setTemplatePath($path);
209
		$this->setTemplateFile('display');
210
	}
211
212
	/**
213
	 * ATOM output
214
	 *
215
	 * @return Object
216
	 */
217
	function atom()
218
	{
219
		Context::set('format', 'atom');
220
		$this->rss();
221
	}
222
223
	/**
224
	 * Error output
225
	 *
226
	 * @return Object
227
	 */
228
	function dispError()
229
	{
230
		// Prepare the output message
231
		$this->rss(null, null, Context::getLang('msg_rss_is_disabled') );
232
	}
233
234
	/**
235
	 * Additional configurations for a service module
236
	 * Receive the form for the form used by rss
237
	 *
238
	 * @param string $obj Will be inserted content in template
239
	 * @return Object
240
	 */
241
	function triggerDispRssAdditionSetup(&$obj)
242
	{
243
		$current_module_srl = Context::get('module_srl');
244
		$current_module_srls = Context::get('module_srls');
245
246
		if(!$current_module_srl && !$current_module_srls)
247
		{
248
			// Get information of the selected module
249
			$current_module_info = Context::get('current_module_info');
250
			$current_module_srl = $current_module_info->module_srl;
251
			if(!$current_module_srl) return new Object();
252
		}
253
		// Get teh RSS configurations for the selected module
254
		$oRssModel = getModel('rss');
255
		$rss_config = $oRssModel->getRssModuleConfig($current_module_srl);
256
		Context::set('rss_config', $rss_config);
257
		// Set the template file
258
		$oTemplate = &TemplateHandler::getInstance();
259
		$tpl = $oTemplate->compile($this->module_path.'tpl', 'rss_module_config');
0 ignored issues
show
Bug introduced by
The property module_path cannot be accessed from this context as it is declared private in class ModuleObject.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
260
		$obj .= $tpl;
261
262
		return new Object();
263
	}
264
}
265
/* End of file rss.view.php */
266
/* Location: ./modules/rss/rss.view.php */
267