summaryrefslogtreecommitdiff
path: root/admin/schema_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/schema_inc.php')
-rwxr-xr-x[-rw-r--r--]admin/schema_inc.php24
1 files changed, 11 insertions, 13 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index d1b38f2..d61d542 100644..100755
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -1,5 +1,5 @@
<?php
-$tables = array(
+$tables = [
'feed_conjugation' => "
content_type_guid C(16) NOTNULL,
conjugation_phrase C(255) NOTNULL,
@@ -7,7 +7,7 @@ $tables = array(
is_target_linked C(1)
"
// CONSTRAINT ', CONSTRAINT `feed_conj_content_type_ref` FOREIGN KEY (`content_type_guid`) REFERENCES `".BIT_DB_PREFIX."liberty_content_types` ( `content_type_guid` )'
-);
+];
global $gBitInstaller;
@@ -15,21 +15,19 @@ foreach( array_keys( $tables ) AS $tableName ) {
$gBitInstaller->registerSchemaTable( FEED_PKG_NAME, $tableName, $tables[$tableName] );
}
-$gBitInstaller->registerSchemaDefault( FEED_PKG_NAME, array(
+$gBitInstaller->registerSchemaDefault( FEED_PKG_NAME, [
"INSERT INTO `".BIT_DB_PREFIX."feed_conjugation` (`content_type_guid`, `conjugation_phrase`, `is_target_linked`,`feed_icon_url`) VALUES ('bituser', 'updated their profile', 'y','".FEED_PKG_URL."icons/pixelmixerbasic/user_16.png')",
"INSERT INTO `".BIT_DB_PREFIX."feed_conjugation` (`content_type_guid`,`conjugation_phrase`,`is_target_linked`,`feed_icon_url`) VALUES ('bitcomment','commented','y','".FEED_PKG_URL."icons/pixelmixerbasic/bubble_16.png')",
-));
+] );
-$gBitInstaller->registerPackageInfo( FEED_PKG_NAME, array(
+$gBitInstaller->registerPackageInfo( FEED_PKG_NAME, [
'description' => "User feed package that makes use of Liberty action log",
'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
-) );
+] );
// ### Default UserPermissions
-$gBitInstaller->registerUserPermissions( FEED_PKG_NAME, array(
- array( 'p_feed_admin', 'Can admin feeds', 'admin', FEED_PKG_NAME ),
- array( 'p_feed_master', 'Can view master feed', 'registered', FEED_PKG_NAME ),
- array( 'p_feed_view', 'Can view feed', 'basic', FEED_PKG_NAME ),
-) );
-
-?>
+$gBitInstaller->registerUserPermissions( FEED_PKG_NAME, [
+ [ 'p_feed_admin', 'Can admin feeds', 'admin', FEED_PKG_NAME ],
+ [ 'p_feed_master', 'Can view master feed', 'registered', FEED_PKG_NAME ],
+ [ 'p_feed_view', 'Can view feed', 'basic', FEED_PKG_NAME ],
+] );