gnu-social/scripts
Mikael Nordfeldth 2a4dc77a63 The overloaded DB_DataObject function staticGet is now called getKV
I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV

   sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)

If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!

This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)

Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this change into consideration.
2013-08-18 13:13:56 +02:00
..
allsites.php add options to show sites with/without a tag 2011-06-01 10:21:03 -04:00
apidocs.config Some initial Doxygen-based documentation for the API 2010-04-22 13:11:49 -07:00
backupuser.php Squashed commit of the following: 2013-06-29 07:52:09 -04:00
checkschema.php Option to pre-load a plugin with checkschema script 2011-05-04 21:05:25 -07:00
clear_jabber.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
clearcache.php common_cache_key() -> Cache::key() 2010-09-06 10:07:43 -04:00
command.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
commandline.inc The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
console.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
createsim.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
delete_status_network.sh Fixes for delete_status_network.sh: 2010-11-22 11:10:10 -08:00
deletegroup.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
deleteuser.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
docgen.php docgen.php no longer depends on having a working installation; uses Console_GetOpt directly and regexes the STATUSNET_VERSION from common.php 2010-04-21 20:20:43 +02:00
doxygen.tmpl Add scripts/docgen.php to build basic doxygen HTML docs from doc comments, either for core or a given plugin. 2010-03-15 09:42:25 -07:00
dumpschema.php fix notices in dumpschema 2010-10-29 15:11:41 -07:00
fixup_blocks.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
fixup_deletions.php fixup_deletions.php script to look for notices posted by now-deleted profiles and remove them. 2010-03-23 17:24:01 -07:00
fixup_files.php Add forgotten scripts/fixup_files.php to clean up "the h bug" 2010-03-11 11:52:19 -08:00
fixup_hashtags.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
fixup_replies.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
fixup_status_network.php try/catch just in case.. 2010-07-28 12:04:37 -04:00
fixup_utf8.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
flushrouter.php fix flushrouter.php -- tried to call Cache::delete statically 2011-03-16 15:01:58 -07:00
flushsite.php a script to flush site 2010-03-09 10:55:48 -05:00
getpiddir.php Revert "Open tags should have closing tags" 2009-10-08 11:41:39 -04:00
getvaliddaemons.php Remove static definition of imdaemon.php as valid daemon. 2013-06-15 18:59:17 +02:00
handlequeued.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
imdaemon.php Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 1.0.x 2010-03-22 13:56:16 -07:00
importtwitteratom.php Always specify UTF-8 targt charset for html_entity_decode(); default is 8-bit ISO-8859-1 which causes things to break when we later pass them through things that expect to work with UTF-8. For instance, running through preg_replace() with the /u option results in NULL, leading to problems with OStatus and SubMirror generating their plaintext versions and doing length-cropping. 2010-09-30 11:29:31 -07:00
install_cli.php Added SSL option to web and cli installers 2013-08-12 13:08:14 +02:00
joingroup.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
leavegroup.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
maildaemon.php Add an IMAP daemon so StatusNet can process incoming user posts via catch-all mailbox (in addition to the pre-existing script alias method) 2010-01-08 18:52:43 -05:00
make-release.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
makegroupadmin.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
move_status_network.sh Script to move a statusnetwork from one db server to another 2011-10-16 04:44:08 -04:00
moveuser.php Add a scary 'experimental feture' warning & are-you-sure prompt on moveuser.php 2011-01-19 15:13:46 -08:00
queuectl.php Control channel for queue daemons to request graceful shutdown, restart, or update to listen to a newly added or reconfigured site. 2010-01-26 11:49:49 -08:00
queuedaemon.php Detect when queuedaemon/xmppdaemon parent processes die and kill the child processes. 2010-03-10 11:54:00 -08:00
registeruser.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
reportsnapshot.php Revert "Open tags should have closing tags" 2009-10-08 11:41:39 -04:00
restoreuser.php Make restoreuser use new FeedImporter queue handler 2010-12-17 16:27:20 -05:00
sendemail.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
sessiongc.php Revert "Open tags should have closing tags" 2009-10-08 11:41:39 -04:00
setconfig.php Mass replacement of #-comments with //-comments 2011-03-22 11:54:23 -04:00
setpassword.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
settag.php Success exit from settag.php if desired state already exists 2011-10-24 20:13:10 -04:00
setup_status_network.sh fix typo in the comment (for better copy & pasting) 2010-09-09 13:14:52 -04:00
setup.cfg.sample allow setting some initial tags on a new network 2011-06-01 10:53:46 -04:00
showcache.php common_cache_key() -> Cache::key() 2010-09-06 10:07:43 -04:00
showplugins.php showplugins.php: dump list of activated plugins and their settings on this site 2010-04-12 11:50:42 -07:00
showtable.php statusize schema-related modules 2009-09-23 09:20:04 -04:00
startdaemons.sh No need for newline when running 'echo' 2013-08-12 15:22:23 +02:00
statusnet.spec last scrub of Laconica -> StatusNet 2009-08-26 03:33:43 -04:00
statusnetversion.php script to show software version 2011-04-26 13:01:00 -04:00
stopdaemons.sh Squashed commit of the following: 2012-07-09 09:43:40 -04:00
strip_geo.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
uncache_users.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
update_po_templates.php Add the root index.php to gettext .pot template file generation; some error messages and such in there weren't making it into the TranslateWiki.net database. 2011-04-03 15:22:11 -07:00
update_translations.php Update group ID for translations export. 2010-09-18 23:50:36 +02:00
updatelocation.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
updateurls.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
upgrade.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
useremail.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
userrole.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00