forked from GNUsocial/gnu-social
PHP 5.3 compatibility hack for DB_DataObject
statusnet.links.ini file could not be read anymore due to the entry for nonce containing a comma in its key value. PHP's parse_ini_file() function no longer allows commas in keys, and rejects the *ENTIRE FILE* if it's present, breaking various automatic joins.
This commit is contained in:
parent
22025e3b7b
commit
fd3c9334bf
@ -22,4 +22,19 @@ class Nonce extends Memcached_DataObject
|
||||
|
||||
/* the code above is auto generated do not remove the tag below */
|
||||
###END_AUTOCODE
|
||||
|
||||
/**
|
||||
* Compatibility hack for PHP 5.3
|
||||
*
|
||||
* The statusnet.links.ini entry cannot be read because "," is no longer
|
||||
* allowed in key names when read by parse_ini_file().
|
||||
*
|
||||
* @return array
|
||||
* @access public
|
||||
*/
|
||||
function links()
|
||||
{
|
||||
return array('consumer_key,token' => 'token:consumer_key,token');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -19,8 +19,11 @@ profile_id = profile:id
|
||||
[token]
|
||||
consumer_key = consumer:consumer_key
|
||||
|
||||
[nonce]
|
||||
consumer_key,token = token:consumer_key,token
|
||||
; Compatibility hack for PHP 5.3
|
||||
; This entry has been moved to the class definition, as commas are no longer
|
||||
; considered valid in keys, causing parse_ini_file() to reject the whole file.
|
||||
;[nonce]
|
||||
;consumer_key,token = token:consumer_key,token
|
||||
|
||||
[confirm_address]
|
||||
user_id = user:id
|
||||
|
Loading…
Reference in New Issue
Block a user