silence some warnings at php E_ALL levels
This commit is contained in:
@@ -394,7 +394,9 @@ function visible_activity($item) {
|
||||
function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
||||
|
||||
$tstart = dba_timer();
|
||||
$t0 = $t1 = $t2 = $t3 = $t4 = $t5 = $t6 = null;
|
||||
$content_html = '';
|
||||
$o = '';
|
||||
|
||||
require_once('bbcode.php');
|
||||
|
||||
|
@@ -49,7 +49,7 @@ class FriendicaSmartyEngine implements ITemplateEngine {
|
||||
|
||||
public function __construct(){
|
||||
$a = get_app();
|
||||
$basecompiledir = $a->config['system']['smarty3_folder'];
|
||||
$basecompiledir = ((array_key_exists('smarty3_folder',$a->config['system'])) ? $a->config['system']['smarty3_folder'] : '');
|
||||
if (!$basecompiledir) $basecompiledir = dirname(__dir__)."/view/tpl/smarty3";
|
||||
if (!is_dir($basecompiledir)) {
|
||||
echo "<b>ERROR:</b> folder <tt>$basecompiledir</tt> does not exist."; killme();
|
||||
|
Reference in New Issue
Block a user