mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +00:00
Use short form array syntax everywhere
This commit is contained in:
parent
4ee41c64a3
commit
27b60e003f
68 changed files with 869 additions and 869 deletions
|
@ -4,9 +4,9 @@
|
|||
* Description: Sample Friendica plugin/addon. Set a random place when posting.
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* Addons are registered with the system through the admin
|
||||
* panel.
|
||||
|
@ -14,7 +14,7 @@
|
|||
* When registration is detected, the system calls the plugin
|
||||
* name_install() function, located in 'addon/name/name.php',
|
||||
* where 'name' is the name of the addon.
|
||||
* If the addon is removed from the configuration list, the
|
||||
* If the addon is removed from the configuration list, the
|
||||
* system will call the name_uninstall() function.
|
||||
*
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ use Friendica\Core\PConfig;
|
|||
function randplace_install() {
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Our demo plugin will attach in three places.
|
||||
* The first is just prior to storing a local post.
|
||||
*
|
||||
|
@ -34,7 +34,7 @@ function randplace_install() {
|
|||
|
||||
/**
|
||||
*
|
||||
* Then we'll attach into the plugin settings page, and also the
|
||||
* Then we'll attach into the plugin settings page, and also the
|
||||
* settings post hook so that we can create and update
|
||||
* user preferences.
|
||||
*
|
||||
|
@ -105,7 +105,7 @@ function randplace_post_hook($a, &$item) {
|
|||
*
|
||||
*/
|
||||
|
||||
$cities = array();
|
||||
$cities = [];
|
||||
$zones = timezone_identifiers_list();
|
||||
foreach($zones as $zone) {
|
||||
if((strpos($zone,'/')) && (! stristr($zone,'US/')) && (! stristr($zone,'Etc/')))
|
||||
|
@ -142,7 +142,7 @@ function randplace_settings_post($a,$post) {
|
|||
|
||||
/**
|
||||
*
|
||||
* Called from the Plugin Setting form.
|
||||
* Called from the Plugin Setting form.
|
||||
* Add our own settings info to the page.
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue