diff --git a/formats/array/SRF_Array.php b/formats/array/SRF_Array.php index 91404f4d..65ecff5b 100644 --- a/formats/array/SRF_Array.php +++ b/formats/array/SRF_Array.php @@ -290,8 +290,8 @@ protected function initializeCfgValue( $dfltVal, $dfltCacheKey ) { if ( $cache === null ) { // cache can't be initialized, propably function-reference in userconfig // but format is not used in inline context, use fallback in this case: - global $wgSrfgArraySepTextualFallbacks; - $cache = $wgSrfgArraySepTextualFallbacks[$dfltCacheKey]; + global $srfgArraySepTextualFallbacks; + $cache = $srfgArraySepTextualFallbacks[$dfltCacheKey]; } } return $cache; @@ -439,32 +439,32 @@ public function getParamDefinitions( array $definitions ) { ]; // separators (default values are defined in the following globals:) - global $wgSrfgArraySep, $wgSrfgArrayPropSep, $wgSrfgArrayManySep, $wgSrfgArrayRecordSep, $wgSrfgArrayHeaderSep; + global $srfgArraySep, $srfgArrayPropSep, $srfgArrayManySep, $srfgArrayRecordSep, $srfgArrayHeaderSep; $params['sep'] = [ 'message' => 'smw-paramdesc-sep', - 'default' => $this->initializeCfgValue( $wgSrfgArraySep, 'sep' ), + 'default' => $this->initializeCfgValue( $srfgArraySep, 'sep' ), ]; $params['propsep'] = [ 'message' => 'srf_paramdesc_propsep', - 'default' => $this->initializeCfgValue( $wgSrfgArrayPropSep, 'propsep' ), + 'default' => $this->initializeCfgValue( $srfgArrayPropSep, 'propsep' ), ]; $params['manysep'] = [ 'message' => 'srf_paramdesc_manysep', - 'default' => $this->initializeCfgValue( $wgSrfgArrayManySep, 'manysep' ), + 'default' => $this->initializeCfgValue( $srfgArrayManySep, 'manysep' ), ]; $params['recordsep'] = [ 'message' => 'srf_paramdesc_recordsep', - 'default' => $this->initializeCfgValue( $wgSrfgArrayRecordSep, 'recordsep' ), + 'default' => $this->initializeCfgValue( $srfgArrayRecordSep, 'recordsep' ), 'aliases' => [ 'narysep', 'rcrdsep', 'recsep' ], ]; $params['headersep'] = [ 'message' => 'srf_paramdesc_headersep', - 'default' => $this->initializeCfgValue( $wgSrfgArrayHeaderSep, 'headersep' ), + 'default' => $this->initializeCfgValue( $srfgArrayHeaderSep, 'headersep' ), 'aliases' => [ 'narysep', 'rcrdsep', 'recsep' ], ]; diff --git a/formats/calendar/SRF_Calendar.php b/formats/calendar/SRF_Calendar.php index 5454ec6d..9569b8f2 100644 --- a/formats/calendar/SRF_Calendar.php +++ b/formats/calendar/SRF_Calendar.php @@ -316,8 +316,8 @@ public function formatDateStr( $object ) { } public function displayCalendar( $events ) { - global $wgSrfgFirstDayOfWeek; - global $wgSrfgScriptPath; + global $srfgFirstDayOfWeek; + global $srfgScriptPath; $context = RequestContext::getMain(); $request = $context->getRequest(); @@ -332,7 +332,7 @@ public function displayCalendar( $events ) { 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen, print', - 'href' => $wgSrfgScriptPath + 'href' => $srfgScriptPath . '/formats/calendar/resources/ext.srf.calendar.css' ] ); @@ -385,16 +385,16 @@ public function displayCalendar( $events ) { 6 => wfMessage( 'friday' )->text(), 7 => wfMessage( 'saturday' )->text() ]; - if ( empty( $wgSrfgFirstDayOfWeek ) ) { + if ( empty( $srfgFirstDayOfWeek ) ) { $firstDayOfWeek = 1; $lastDayOfWeek = 7; } else { $firstDayOfWeek = - array_search( $wgSrfgFirstDayOfWeek, $weekDayNames ); + array_search( $srfgFirstDayOfWeek, $weekDayNames ); if ( $firstDayOfWeek === false ) { - // Bad value for $wgSrfgFirstDayOfWeek! - print 'Warning: Bad value for $wgSrfgFirstDayOfWeek "' . - '(' . $wgSrfgFirstDayOfWeek . '")'; + // Bad value for $srfgFirstDayOfWeek! + print 'Warning: Bad value for $srfgFirstDayOfWeek "' . + '(' . $srfgFirstDayOfWeek . '")'; $firstDayOfWeek = 1; } if ( $firstDayOfWeek == 1 ) { @@ -516,10 +516,10 @@ public function displayCalendar( $events ) {