some object/thing tweaks
This commit is contained in:
parent
8ec5f8b07a
commit
fbdee83dca
2
boot.php
2
boot.php
@ -1930,7 +1930,7 @@ function current_theme(){
|
|||||||
function current_theme_url($installing = false) {
|
function current_theme_url($installing = false) {
|
||||||
global $a;
|
global $a;
|
||||||
$t = current_theme();
|
$t = current_theme();
|
||||||
if((file_exists('view/theme/' . $t . '/php/style.php')) && (! $installing))
|
if(file_exists('view/theme/' . $t . '/php/style.php'))
|
||||||
return('view/theme/' . $t . '/php/style.pcss');
|
return('view/theme/' . $t . '/php/style.pcss');
|
||||||
return('view/theme/' . $t . '/css/style.css');
|
return('view/theme/' . $t . '/css/style.css');
|
||||||
}
|
}
|
||||||
|
@ -173,6 +173,15 @@ function tagblock($link,$uid,$count = 0,$authors = '',$flags = 0,$type = TERM_HA
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* verbs: [0] = first person singular, e.g. "I want", [1] = 3rd person singular, e.g. "Bill wants"
|
||||||
|
* We use the first person form when creating an activity, but the third person for use in activities
|
||||||
|
* FIXME: There is no accounting for verb gender for languages where this is significant. We may eventually
|
||||||
|
* require obj_verbs() to provide full conjugations and specify which form to use in the $_REQUEST params to this module.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function obj_verbs() {
|
function obj_verbs() {
|
||||||
$verbs = array(
|
$verbs = array(
|
||||||
'has' => array( t('have'), t('has')),
|
'has' => array( t('have'), t('has')),
|
||||||
@ -186,3 +195,4 @@ function obj_verbs() {
|
|||||||
return $arr['verbs'];
|
return $arr['verbs'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,8 +118,11 @@ if(! x($_SESSION,'sysmsg_info'))
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if($install)
|
if($install) {
|
||||||
$a->module = 'setup';
|
/* Allow an exception for the view module so that pcss will be interpreted during installation */
|
||||||
|
if($a->module != 'view')
|
||||||
|
$a->module = 'setup';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
check_config($a);
|
check_config($a);
|
||||||
|
|
||||||
|
@ -32,6 +32,20 @@ function thing_init(&$a) {
|
|||||||
|
|
||||||
$translated_verb = $verbs[$verb][1];
|
$translated_verb = $verbs[$verb][1];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The site administrator can do things that normals cannot.
|
||||||
|
* This is restricted because it will likely cause
|
||||||
|
* an activitystreams protocol violation and the activity might
|
||||||
|
* choke in some other network and result in unnecessary
|
||||||
|
* support requests. It isn't because we're trying to be heavy-handed
|
||||||
|
* about what you can and can't do.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(! $translated_verb) {
|
||||||
|
if(is_site_admin())
|
||||||
|
$translated_verb = $verb;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Things, objects: We do not provide definite (a, an) or indefinite (the) articles or singular/plural designators
|
* Things, objects: We do not provide definite (a, an) or indefinite (the) articles or singular/plural designators
|
||||||
* That needs to be specified in your thing. e.g. Mike has "a carrot", Greg wants "balls", Bob likes "the Boston Red Sox".
|
* That needs to be specified in your thing. e.g. Mike has "a carrot", Greg wants "balls", Bob likes "the Boston Red Sox".
|
||||||
|
Reference in New Issue
Block a user