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

Collapse All | Expand All

(-)a/pages/admin/PluginManagementHandler.inc.php (+8 lines)
 Lines 35-40   class PluginManagementHandler extends AdminHandler { 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 AdminHandler { 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 AdminHandler { 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 AdminHandler { 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 AdminHandler { 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 197-202   class PluginManagementHandler extends AdminHandler { Link Here 
197
	 * @return boolean
202
	 * @return boolean
198
	 */
203
	 */
199
	function installPlugin($path, &$templateMgr) {
204
	function installPlugin($path, &$templateMgr) {
205
		$this->validate();
200
		$versionFile = $path . VERSION_FILE;
206
		$versionFile = $path . VERSION_FILE;
201
		$templateMgr->assign('error', true);
207
		$templateMgr->assign('error', true);
202
		$templateMgr->assign('path', 'install');
208
		$templateMgr->assign('path', 'install');
 Lines 256-261   class PluginManagementHandler extends AdminHandler { Link Here 
256
	 * @return boolean
262
	 * @return boolean
257
	 */
263
	 */
258
	function upgradePlugin($path, &$templateMgr) {
264
	function upgradePlugin($path, &$templateMgr) {
265
		$this->validate();
259
		$versionFile = $path . VERSION_FILE;
266
		$versionFile = $path . VERSION_FILE;
260
		$templateMgr->assign('error', true);
267
		$templateMgr->assign('error', true);
261
		$templateMgr->assign('path', 'upgrade');
268
		$templateMgr->assign('path', 'upgrade');
 Lines 315-320   class PluginManagementHandler extends AdminHandler { Link Here 
315
	 * @param plugin string
322
	 * @param plugin string
316
	 */
323
	 */
317
	function deletePlugin($plugin) {
324
	function deletePlugin($plugin) {
325
		$this->validate();
318
		$templateMgr =& TemplateManager::getManager();
326
		$templateMgr =& TemplateManager::getManager();
319
		$this->setupTemplate(true);
327
		$this->setupTemplate(true);
320
328

Return to bug 5563