Commit Graph

15 Commits

Author SHA1 Message Date
Mikael Nordfeldth de55d8f83b plugins onAutoload now only overloads if necessary (extlibs etc.)
lib/plugin.php now has a parent onAutoload function that finds most common
files that are used in plugins (actions, dataobjects, forms, libs etc.) if
they are put in the standardised directories ('actions', 'classes', 'forms',
'lib' and perhaps some others in the future).
2013-08-28 16:10:30 +02:00
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
Mikael Nordfeldth c36608b233 Some statically called functions in plugins now declared statically 2013-08-18 11:18:45 +02:00
Mikael Nordfeldth 6c4c4319ef Plugins with classes that extend Managed_DataObject get better code reuse
The switch to having a function in Managed_DataObject is now being applied
to plugins which can use this as well.

There are some plugins that still use Memcached_DataObject, but these will
be taken care of later.
2013-08-12 20:00:01 +02:00
Ian Denhardt 92e8cc3a1e fixed copyright dates. 2011-05-27 12:22:47 -04:00
Ian Denhardt 0dec9b26d9 Fixed display issues with video plugin. 2011-05-24 17:05:38 -04:00
Ian Denhardt ec707a7820 integrated privacy toselector into video plugin. there is a display issue to fix, but it works. 2011-05-24 16:47:59 -04:00
Ian Denhardt fcc3c88c74 Fixed capitalization 2011-05-24 15:48:34 -04:00
Ian Denhardt 58254aa497 show video controls by default, and fit the video inside its container. 2011-03-28 07:59:07 -04:00
Ian Denhardt 26e3eee769 deleting videos is now possible 2011-03-28 04:32:46 -04:00
Ian Denhardt b7aca97d3e Video plugin. still rough, but federation works. 2011-03-15 23:51:07 -04:00
Ian Denhardt e3b891f0b7 validate input, dummy. 2010-08-11 14:56:42 -04:00
Ian Denhardt 8f37b432f8 Rudementary video support. 2010-08-11 14:27:42 -04:00
Ian Denhardt 5d7dff100f Got rid of old duplicate files. 2010-08-02 12:09:44 -04:00
Matt Lee 14198ea74d removed dashes in names 2010-06-10 10:18:58 -04:00