Merge branch 'master' of https://github.com/LibreTime/libretime into fix-smartblock-multi-criteria
This commit is contained in:
commit
eb2d463672
11 changed files with 1689 additions and 230 deletions
|
@ -64,10 +64,10 @@ set_include_path(APPLICATION_PATH . '/common/' . PATH_SEPARATOR . get_include_pa
|
|||
require_once 'autoload.php';
|
||||
|
||||
/** Zend_Application */
|
||||
require_once 'Zend/Application.php';
|
||||
$application = new Zend_Application(
|
||||
APPLICATION_ENV,
|
||||
CONFIG_PATH . 'application.ini'
|
||||
CONFIG_PATH . 'application.ini',
|
||||
true
|
||||
);
|
||||
|
||||
require_once(APPLICATION_PATH . "logging/Logging.php");
|
||||
|
|
|
@ -68,10 +68,9 @@ $pages[] = array(
|
|||
);
|
||||
$pages[] = array(
|
||||
'label' => _("Settings"),
|
||||
'resource' => 'preference',
|
||||
'action' => 'index',
|
||||
'action' => 'edit-user',
|
||||
'module' => 'default',
|
||||
'controller' => 'preference',
|
||||
'controller' => 'user',
|
||||
'class' => '<i class="icon-cog icon-white"></i>',
|
||||
'title' => 'Settings',
|
||||
'pages' => array(
|
||||
|
@ -84,8 +83,7 @@ $pages[] = array(
|
|||
array(
|
||||
'label' => _('My Profile'),
|
||||
'controller' => 'user',
|
||||
'action' => 'edit-user',
|
||||
'resource' => 'usersettings'
|
||||
'action' => 'edit-user'
|
||||
),
|
||||
array(
|
||||
'label' => _('Users'),
|
||||
|
|
|
@ -130,7 +130,8 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
|
||||
try {
|
||||
// REST uploads are not from Zend_Form, hence we handle them using Zend_File_transfer directly
|
||||
$upload = new Zend_File_Transfer();
|
||||
// we need to specify an explicit adapter since autodetection broke in php 7.2
|
||||
$upload = new Zend_File_Transfer('Zend_File_Transfer_Adapter_Http');
|
||||
// this error should not really get hit, letting the user know if it does is nice for debugging
|
||||
// see: https://github.com/LibreTime/libretime/issues/3#issuecomment-281143417
|
||||
if (!$upload->isValid('file')) {
|
||||
|
|
|
@ -38,8 +38,8 @@ define('AIRTIME_CONFIG', 'airtime.conf');
|
|||
//Rest Module Controllers - for custom Rest_RouteController.php
|
||||
set_include_path(REST_MODULE_CONTROLLER_PATH . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
//Vendors (Composer)
|
||||
set_include_path(VENDOR_PATH . PATH_SEPARATOR . get_include_path());
|
||||
// Vendors (Composer, zend-loader is explicitly specified due to https://github.com/zf1/zend-application/pull/2#issuecomment-102599655)
|
||||
set_include_path(VENDOR_PATH . PATH_SEPARATOR . VENDOR_PATH . 'zf1s/zend-loader/library/' . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
// Ensure library/ is on include_path
|
||||
set_include_path(LIB_PATH . PATH_SEPARATOR . get_include_path());
|
||||
|
|
|
@ -127,7 +127,7 @@ class DatabaseSetup extends Setup {
|
|||
*/
|
||||
private function createDatabase() {
|
||||
$statement = self::$dbh->prepare("CREATE DATABASE " . pg_escape_string(self::$_properties["dbname"])
|
||||
. " WITH ENCODING 'UTF8' TEMPLATE template0"
|
||||
. " WITH ENCODING 'UNICODE' TEMPLATE template0"
|
||||
. " OWNER " . pg_escape_string(self::$_properties["dbuser"]));
|
||||
if (!$statement->execute()) {
|
||||
throw new AirtimeDatabaseException("There was an error creating the database!",
|
||||
|
|
|
@ -30,7 +30,8 @@ set_include_path(implode(PATH_SEPARATOR, array(
|
|||
// Ensure vendor/ is on the include path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
get_include_path(),
|
||||
realpath(APPLICATION_PATH . '/../../vendor')
|
||||
realpath(APPLICATION_PATH . '/../../vendor'),
|
||||
realpath(APPLICATION_PATH . '/../../vendor/zf1s/zend-loader/library')
|
||||
)));
|
||||
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue