- put version to a more accessible place
- use it for logs and help - bump the version
This commit is contained in:
@@ -12,9 +12,16 @@ use BSR\Lib\Search\BookSearch;
|
||||
use BSR\Lib\WebService;
|
||||
class NetBiblio extends WebService
|
||||
{
|
||||
/** @var string $version version number */
|
||||
public static $version = '1.0.1';
|
||||
|
||||
private $login = '';
|
||||
private $client = 'website';
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct(self::$version);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the current login and client based on information
|
||||
* from the session.
|
||||
|
||||
1
help.php
1
help.php
@@ -8,6 +8,7 @@ use BSR\Lib\Help;
|
||||
require_once('Lib/autoloader.php');
|
||||
|
||||
echo Html::template(array(
|
||||
'version' => NetBiblio::$version,
|
||||
'title' => 'Help',
|
||||
'content' => Help::content(new NetBiblio()),
|
||||
));
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
|
||||
namespace BSR;
|
||||
|
||||
/** @var string $version version number */
|
||||
$ws_version = '1.0.0';
|
||||
|
||||
require_once('Lib/autoloader.php');
|
||||
|
||||
$web = new NetBiblio($ws_version);
|
||||
$web = new NetBiblio();
|
||||
$web->Run();
|
||||
|
||||
Reference in New Issue
Block a user