diff options
| author | modela bitweaver <spiderr@bitweaver.org> | 2021-02-02 01:12:23 -0500 |
|---|---|---|
| committer | modela bitweaver <spiderr@bitweaver.org> | 2021-02-02 01:12:23 -0500 |
| commit | 706a855e175d0efc5193b3511c51455c439481fc (patch) | |
| tree | 97ca9d8d841b43705430fa2d034a0249d8405429 | |
| parent | c3b302935c790f584f61b830ea3540cebe3ab5af (diff) | |
| download | calendar-706a855e175d0efc5193b3511c51455c439481fc.tar.gz calendar-706a855e175d0efc5193b3511c51455c439481fc.tar.bz2 calendar-706a855e175d0efc5193b3511c51455c439481fc.zip | |
move _inc and _lib to includes/ and use PKG_INCLUDE_PATH constants
| -rw-r--r-- | Calendar.php | 4 | ||||
| -rw-r--r-- | box.php | 2 | ||||
| -rw-r--r-- | user_preferences_inc.php | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Calendar.php b/Calendar.php index 5b387d1..146b42b 100644 --- a/Calendar.php +++ b/Calendar.php @@ -11,7 +11,7 @@ /** * Required setup */ -include_once( KERNEL_PKG_PATH . 'BitDate.php' ); +include_once( KERNEL_PKG_CLASS_PATH.'BitDate.php' ); // set week offset - start with a day other than monday define( 'WEEK_OFFSET', !empty( $gBitUser->mUserPrefs['calendar_week_offset'] ) ? $gBitUser->mUserPrefs['calendar_week_offset'] : $gBitSystem->getConfig( 'calendar_week_offset', 0 ) ); @@ -76,7 +76,7 @@ class Calendar extends LibertyContent { $item['created'] = $item['created'] + $this->display_offset; $item['last_modified'] = $item['last_modified'] + $this->display_offset; $item['event_time'] = $item['event_time'] + $this->display_offset; - $item['parsed'] = self::parseDataHash( $item['data'] ); + $item['parsed'] = self::parseDataHash( $item ); $dstart = $this->mDate->gmmktime( 0, 0, 0, $this->mDate->date( "m", $item['timestamp'], true ), $this->mDate->date( "d", $item['timestamp'], true ), $this->mDate->date( "Y", $item['timestamp'], true ) ); $ret[$dstart][] = $item; } @@ -15,7 +15,7 @@ require_once( '../kernel/setup_inc.php' ); global $gContent, $gBitSystem; -include_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); +include_once( LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php' ); $gContent->mInfo['rendered'] = $gContent->getPreview(); diff --git a/user_preferences_inc.php b/user_preferences_inc.php index 84bad93..3c6b43b 100644 --- a/user_preferences_inc.php +++ b/user_preferences_inc.php @@ -13,7 +13,7 @@ * Setup */ if( $gBitSystem->isFeatureActive('calendar_user_prefs') ) { - include_once( CALENDAR_PKG_PATH.'admin/admin_calendar_inc.php' ); + include_once( CALENDAR_PKG_INCLUDE_PATH.'admin/admin_calendar_inc.php' ); if( !empty( $_REQUEST['calendar_submit'] ) ) { foreach( $calendarValues as $item ) { if( !empty( $_REQUEST[$item] ) ) { @@ -22,4 +22,4 @@ if( $gBitSystem->isFeatureActive('calendar_user_prefs') ) { } } } -?>
\ No newline at end of file +?> |
