Change the most obvious OC_ methods to OCP\
parent
5a05068c60
commit
871581a759
|
@ -14,7 +14,7 @@ foreach($calendars as $calendar) {
|
|||
$allcached = false;
|
||||
}
|
||||
}
|
||||
$l = new OC_L10N('calendar');
|
||||
$l = OCP\Util::getL10N('calendar');
|
||||
if(!$allcached) {
|
||||
OCP\JSON::error(array('message'=>'Not all calendars are completely cached', 'l10n'=>$l->t('Not all calendars are completely cached')));
|
||||
}else{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
$l10n = OC_L10N::get('calendar');
|
||||
$l10n = OCP\Util::getL10N('calendar');
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('calendar');
|
||||
$output = new OCP\Template("calendar", "part.choosecalendar");
|
||||
|
|
|
@ -11,7 +11,7 @@ OCP\JSON::checkLoggedIn();
|
|||
OCP\JSON::checkAppEnabled('calendar');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$l = OC_L10N::get('calendar');
|
||||
$l = OCP\Util::getL10N('calendar');
|
||||
|
||||
$lat = $_POST['lat'];
|
||||
$lng = $_POST['lng'];
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// Init owncloud
|
||||
|
||||
|
||||
$l=OC_L10N::get('calendar');
|
||||
$l = OCP\Util::getL10N('calendar');
|
||||
|
||||
// Check if we are a user
|
||||
OCP\JSON::checkLoggedIn();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$l=OC_L10N::get('calendar');
|
||||
$l = OCP\Util::getL10N('calendar');
|
||||
OC::$CLASSPATH['OC_Calendar_App'] = 'calendar/lib/app.php';
|
||||
OC::$CLASSPATH['OC_Calendar_Calendar'] = 'calendar/lib/calendar.php';
|
||||
OC::$CLASSPATH['OC_Calendar_Object'] = 'calendar/lib/object.php';
|
||||
|
|
|
@ -19,6 +19,6 @@ if (version_compare($installedVersion, '0.6.3', '<')) {
|
|||
$sm->renameTable($prefix.'calendar_share_calendar', $prefix.'clndr_share_calendar');
|
||||
$sm->renameTable($prefix.'calendar_repeat', $prefix.'clndr_repeat');
|
||||
} catch (Exception $e) {
|
||||
OC_Log::write('calendar', 'preupdate: '.$e->getMessage(), OC_Log::ERROR);
|
||||
\OCP\Util::writeLog('calendar', 'preupdate: '.$e->getMessage(), \OCP\Util::ERROR);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
$l10n = OC_L10N::get('calendar');
|
||||
$l10n = OCP\Util::getL10N('calendar');
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('calendar');
|
||||
$tmpl = new OCP\Template('calendar', 'part.choosecalendar');
|
||||
|
|
|
@ -14,7 +14,7 @@ header("Cache-Control: no-cache, must-revalidate");
|
|||
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
|
||||
|
||||
// Enable l10n support
|
||||
$l = OC_L10N::get('calendar');
|
||||
$l = OCP\Util::getL10N('calendar');
|
||||
|
||||
|
||||
// Get the event sources
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
* This class manages our app actions
|
||||
*/
|
||||
OC_Calendar_App::$l10n = new OC_L10N('calendar');
|
||||
OC_Calendar_App::$l10n = OCP\Util::getL10N('calendar');
|
||||
OC_Calendar_App::$tz = OC_Calendar_App::getTimezone();
|
||||
class OC_Calendar_App{
|
||||
const CALENDAR = 'calendar';
|
||||
|
|
Loading…
Reference in New Issue