Skip to content

Instantly share code, notes, and snippets.

View nxpthx's full-sized avatar

Steffen Ritter nxpthx

View GitHub Profile
@nxpthx
nxpthx / gist:10978963
Created April 17, 2014 12:19
Login with redirect to access restricted page
plugin.tx_felogin_pi1 {
redirectDisable = 0
redirectMode = getpost
}
config {
typolinkCheckRootline=1
typolinkLinkAccessRestrictedPages = 245
typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
}
@nxpthx
nxpthx / gist:7924976
Created December 12, 2013 08:47
Make tt_address 6.2 usable
diff --git a/tt_address/class.tx_ttaddress_addfilestosel.php b/tt_address/class.tx_ttaddress_addfilestosel.php
index 1795a3e..28af23a 100644
--- a/tt_address/class.tx_ttaddress_addfilestosel.php
+++ b/tt_address/class.tx_ttaddress_addfilestosel.php
@@ -22,9 +22,6 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
-require_once(PATH_t3lib.'class.t3lib_page.php');
-require_once(PATH_t3lib.'class.t3lib_tstemplate.php');
@nxpthx
nxpthx / fix.diff
Created December 14, 2013 08:35
Fix the Error about files needed to be indexed...
diff --git a/typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php b/typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php
index 5e0af58..4b145f5 100644
--- a/typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php
+++ b/typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php
@@ -304,10 +304,9 @@ abstract class AbstractDriver {
* @param string $localFilePath
* @param Folder $targetFolder
* @param string $fileName The name to add the file under
- * @param \TYPO3\CMS\Core\Resource\AbstractFile $updateFileObject Optional file object to update (instead of creating a new object). With this parameter, this function can be used to "populate" a dummy file object with a real file underneath.
- * @return FileInterface
### Keybase proof
I hereby claim:
* I am nxpthx on github.
* I am steffenritter (https://keybase.io/steffenritter) on keybase.
* I have a public key ASDb6u7uNm_orF_lCi5FbrV8fNPuk25GHFWUIRSO82VaPAo
To claim this, I am signing this object: