Skip to content

Commit 30cc40c

Browse files
committed
(Re)add config option
1 parent 7affacf commit 30cc40c

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

modman

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
src/app/etc/local.SUPEE-9767.xml app/etc/local.SUPEE-9767.xml
1+
src/app/code/community/Sr/AllowSymlink app/code/community/Sr/AllowSymlink/
2+
src/app/etc/modules/Sr_AllowSymlink.xml app/etc/modules/Sr_AllowSymlink.xml
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
/**
4+
* System config symlink backend model
5+
*
6+
* @category Mage
7+
* @package Mage_Adminhtml
8+
*/
9+
class Sr_AllowSymlink_Model_System_Config_Backend_Symlink extends Mage_Core_Model_Config_Data
10+
{
11+
/**
12+
* Removed save() method returning just $this and prevents enabling symlinks.
13+
*
14+
* @see Mage_Adminhtml_Model_System_Config_Backend_Symlink::save()
15+
* @since 1.9.3.4 (SUPEE-9767v2)
16+
*/
17+
}

src/app/code/community/Sr/AllowSymlink/etc/config.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
<version>0.0.2</version>
66
</Sr_AllowSymlink>
77
</modules>
8+
<global>
9+
<models>
10+
<sr_allowsymlink>
11+
<class>Sr_AllowSymlink_Model</class>
12+
</sr_allowsymlink>
13+
</models>
14+
</global>
815
</config>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<config>
3+
<sections>
4+
<dev>
5+
<groups>
6+
<template>
7+
<show_in_default>1</show_in_default>
8+
<fields>
9+
<allow_symlink>
10+
<show_in_default>1</show_in_default>
11+
<backend_model>sr_allowsymlink/system_config_backend_symlink</backend_model>
12+
</allow_symlink>
13+
</fields>
14+
</template>
15+
</groups>
16+
</dev>
17+
</sections>
18+
</config>

src/app/etc/modules/Sr_AllowSymlink.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<Sr_AllowSymlink>
55
<active>true</active>
66
<codePool>community</codePool>
7+
<depends>
8+
<Mage_Core />
9+
</depends>
710
</Sr_AllowSymlink>
811
</modules>
912
</config>

0 commit comments

Comments
 (0)