diff --git a/bibtexbrowser.php b/bibtexbrowser.php index ead0c12..580f601 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -483,7 +483,7 @@ class StateBasedBibtexParser { var $delegate; - function StateBasedBibtexParser(&$delegate) { + function __construct(&$delegate) { $this->delegate = &$delegate; } @@ -773,7 +773,7 @@ class XMLPrettyPrinter extends ParserDelegate { /** represents @string{k=v} */ class StringEntry { - function StringEntry($k, $v, $filename) { + function __construct($k, $v, $filename) { $this->name=$k; $this->value=$v; $this->filename=$filename; @@ -1163,7 +1163,7 @@ class BibEntry { /** Creates an empty new bib entry. Each bib entry is assigned a unique * identification number. */ - function BibEntry() { + function __construct() { } /** Sets the name of the file containing this entry */ @@ -2344,7 +2344,7 @@ function DefaultBibliographyStyle(&$bibentry) { usage: Add the following line in "bibtexbrowser.local.php"
-define('BIBLIOGRAPHYSTYLE','JanosBibliographyStyle'); +@define('BIBLIOGRAPHYSTYLE','JanosBibliographyStyle');*/ function JanosBibliographyStyle(&$bibentry) { @@ -2447,8 +2447,8 @@ function JanosBibliographyStyle(&$bibentry) { * * usage: Add the following lines to "bibtexbrowser.local.php"
-define('BIBLIOGRAPHYSTYLE','VancouverBibliographyStyle'); -define('USE_INITIALS_FOR_NAMES',true); +@define('BIBLIOGRAPHYSTYLE','VancouverBibliographyStyle'); +@define('USE_INITIALS_FOR_NAMES',true);*/ @@ -2624,7 +2624,7 @@ usage: */ class IndependentYearMenu { - function IndependentYearMenu($db) { + function __construct($db) { $yearIndex = $db->yearIndex(); echo '