We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 5563 | Differences between
and this patch

Collapse All | Expand All

(-)a/pages/manager/PluginManagementHandler.inc.php (+8 lines)
 Lines 35-40   class PluginManagementHandler extends ManagerHandler { Link Here 
35
	 * Display a list of plugins along with management options.
35
	 * Display a list of plugins along with management options.
36
	 */
36
	 */
37
	function managePlugins($args) {
37
	function managePlugins($args) {
38
		$this->validate();
38
		$path = isset($args[0])?$args[0]:null;
39
		$path = isset($args[0])?$args[0]:null;
39
		$plugin = isset($args[1])?$args[1]:null;
40
		$plugin = isset($args[1])?$args[1]:null;
40
41
 Lines 68-73   class PluginManagementHandler extends ManagerHandler { Link Here 
68
	 * Show plugin installation form.
69
	 * Show plugin installation form.
69
	 */
70
	 */
70
	function showInstallForm() {
71
	function showInstallForm() {
72
		$this->validate();
71
		$templateMgr =& TemplateManager::getManager();
73
		$templateMgr =& TemplateManager::getManager();
72
		$this->setupTemplate(true);
74
		$this->setupTemplate(true);
73
75
 Lines 85-90   class PluginManagementHandler extends ManagerHandler { Link Here 
85
	 * @param plugin string
87
	 * @param plugin string
86
	 */
88
	 */
87
	function showUpgradeForm($plugin) {
89
	function showUpgradeForm($plugin) {
90
		$this->validate();
88
		$templateMgr =& TemplateManager::getManager();
91
		$templateMgr =& TemplateManager::getManager();
89
		$this->setupTemplate(true);
92
		$this->setupTemplate(true);
90
93
 Lines 103-108   class PluginManagementHandler extends ManagerHandler { Link Here 
103
	 * @param plugin string
106
	 * @param plugin string
104
	 */
107
	 */
105
	function showDeleteForm($plugin) {
108
	function showDeleteForm($plugin) {
109
		$this->validate();
106
		$templateMgr =& TemplateManager::getManager();
110
		$templateMgr =& TemplateManager::getManager();
107
		$this->setupTemplate(true);
111
		$this->setupTemplate(true);
108
112
 Lines 123-128   class PluginManagementHandler extends ManagerHandler { Link Here 
123
	 * $param function string type of operation to perform after upload ('upgrade' or 'install')
127
	 * $param function string type of operation to perform after upload ('upgrade' or 'install')
124
	 */
128
	 */
125
	function uploadPlugin($function) {
129
	function uploadPlugin($function) {
130
		$this->validate();
126
		$templateMgr =& TemplateManager::getManager();
131
		$templateMgr =& TemplateManager::getManager();
127
		$this->setupTemplate(true);
132
		$this->setupTemplate(true);
128
133
 Lines 195-200   class PluginManagementHandler extends ManagerHandler { Link Here 
195
	 * @return boolean
200
	 * @return boolean
196
	 */
201
	 */
197
	function installPlugin($path, &$templateMgr) {
202
	function installPlugin($path, &$templateMgr) {
203
		$this->validate();
198
		$versionFile = $path . VERSION_FILE;
204
		$versionFile = $path . VERSION_FILE;
199
		$templateMgr->assign('error', true);
205
		$templateMgr->assign('error', true);
200
		$templateMgr->assign('path', 'install');
206
		$templateMgr->assign('path', 'install');
 Lines 254-259   class PluginManagementHandler extends ManagerHandler { Link Here 
254
	 * @return boolean
260
	 * @return boolean
255
	 */
261
	 */
256
	function upgradePlugin($path, &$templateMgr) {
262
	function upgradePlugin($path, &$templateMgr) {
263
		$this->validate();
257
		$versionFile = $path . VERSION_FILE;
264
		$versionFile = $path . VERSION_FILE;
258
		$templateMgr->assign('error', true);
265
		$templateMgr->assign('error', true);
259
		$templateMgr->assign('path', 'upgrade');
266
		$templateMgr->assign('path', 'upgrade');
 Lines 313-318   class PluginManagementHandler extends ManagerHandler { Link Here 
313
	 * @param plugin string
320
	 * @param plugin string
314
	 */
321
	 */
315
	function deletePlugin($plugin) {
322
	function deletePlugin($plugin) {
323
		$this->validate();
316
		$templateMgr =& TemplateManager::getManager();
324
		$templateMgr =& TemplateManager::getManager();
317
		$this->setupTemplate(true);
325
		$this->setupTemplate(true);
318
326

Return to bug 5563