Skip to content

Commit ef5adf9

Browse files
committed
Fixed PHP depricatation errors and notices.
1 parent 8c3cf48 commit ef5adf9

6 files changed

Lines changed: 12 additions & 10 deletions

File tree

generate/cover.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//$page->set('updates', get_updates(24));
1717
//$page->set('happenings', get_happenings(5));
1818
//$page->set('courses', get_courses_short(5));
19-
$page->set('exhibition', get_curated_short(4));
19+
$page->set('exhibition', get_curated_short());
2020
writeFile("index.php", $page->out());
2121

2222
$benchmark_end = microtime_float();

generate/domit/xml_domit_utilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function removeExtension($fileName) {
296296
* @param string The XML text
297297
* @return boolean True if the XML text is valid
298298
*/
299-
function validateXML($xmlText) {
299+
static function validateXML($xmlText) {
300300
//this does only rudimentary validation
301301
//at this point in time
302302
$isValid = true;

generate/domit/xml_saxy_parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,15 +723,15 @@ function fireDTDEvent($data) {
723723
* @param string The text of the comment
724724
*/
725725
function fireCommentEvent($data) {
726-
call_user_func($this->commentHandler, &$this, $data);
726+
call_user_func($this->commentHandler, array(&$this), $data);
727727
} //fireCommentEvent
728728

729729
/**
730730
* Fires a processing instruction event
731731
* @param string The processing instruction data
732732
*/
733733
function fireProcessingInstructionEvent($target, $data) {
734-
call_user_func($this->processingInstructionHandler, &$this, $target, $data);
734+
call_user_func($this->processingInstructionHandler, array(&$this), $target, $data);
735735
} //fireProcessingInstructionEvent
736736

737737
/**

generate/domit/xml_saxy_shared.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ function parseBetweenTags($betweenTagText) {
255255
* @param Array The start element attributes
256256
*/
257257
function fireStartElementEvent($tagName, $attributes) {
258-
call_user_func($this->startElementHandler, &$this, $tagName, $attributes);
258+
call_user_func($this->startElementHandler, array(&$this), $tagName, $attributes);
259259
} //fireStartElementEvent
260260

261261
/**
262262
* Fires an end element event
263263
* @param string The end element tag name
264264
*/
265265
function fireEndElementEvent($tagName) {
266-
call_user_func($this->endElementHandler, &$this, $tagName);
266+
call_user_func($this->endElementHandler, array(&$this), $tagName);
267267
} //fireEndElementEvent
268268

269269
/**
@@ -276,15 +276,15 @@ function fireCharacterDataEvent($data) {
276276
$data = strtr($data, $this->definedEntities);
277277
}
278278

279-
call_user_func($this->characterDataHandler, &$this, $data);
279+
call_user_func($this->characterDataHandler, array(&$this), $data);
280280
} //fireCharacterDataEvent
281281

282282
/**
283283
* Fires a CDATA Section event
284284
* @param string The CDATA Section data
285285
*/
286286
function fireCDataSectionEvent($data) {
287-
call_user_func($this->cDataSectionHandler, &$this, $data);
287+
call_user_func($this->cDataSectionHandler, array(&$this), $data);
288288
} //fireCDataSectionEvent
289289
} //SAXY_Parser_Base
290290

generate/exhibition.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ function get_curated_short()
125125
$curated = curated_xml(4);
126126

127127
// output html
128+
$html = '';
129+
128130
foreach ($curated as $c) {
129131
$html .= $c->display_short_home();
130132
}
@@ -135,7 +137,7 @@ function get_curated_short()
135137
function curated_xml($num)
136138
{
137139
// open and parse curated.xml
138-
$xml =& openXML('curated.xml');
140+
$xml = openXML('curated.xml');
139141

140142
// get software nodes
141143
$softwares = $xml->getElementsByTagName('software');

generate/lib/functions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function writeFile($filename, $content)
281281
if ( strpos( $filename, BASEDIR ) !== 0 ) # force basedir
282282
$filename = BASEDIR . $filename;
283283

284-
#echo $filename . "\n";
284+
echo $filename . "\n";
285285
#echo $content . "\n";
286286

287287
make_necessary_directories($filename);

0 commit comments

Comments
 (0)