Ignore:
Timestamp:
May 3, 2014 11:09:03 PM (10 years ago)
Author:
anonymous
Message:

Convert tabs to spaces, and lineendings to LF in all files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/PEdit.inc.php

    r478 r479  
    123123    public function setParam($params)
    124124    {
    125         $app =& App::getInstance();
     125        $app =& App::getInstance();
    126126
    127127        if (isset($params) && is_array($params)) {
     
    142142    public function getParam($param)
    143143    {
    144         $app =& App::getInstance();
     144        $app =& App::getInstance();
    145145
    146146        if (array_key_exists($param, $this->_params)) {
     
    161161    public function start($initialize_data_file=false)
    162162    {
    163         $app =& App::getInstance();
     163        $app =& App::getInstance();
    164164
    165165        if (!is_dir($this->getParam('data_dir'))) {
     
    219219    public function set($name, $options=array())
    220220    {
    221         $app =& App::getInstance();
     221        $app =& App::getInstance();
    222222
    223223        $name = preg_replace('/\s/', '_', $name);
     
    253253    public function formBegin()
    254254    {
    255         $app =& App::getInstance();
     255        $app =& App::getInstance();
    256256
    257257        if (!$this->_authorized || empty($this->_data)) {
     
    401401    public function printVersions()
    402402    {
    403         $app =& App::getInstance();
     403        $app =& App::getInstance();
    404404
    405405        if ($this->_authorized && $this->op == 'Versions') {
     
    444444    private function _fileHash()
    445445    {
    446         $app =& App::getInstance();
     446        $app =& App::getInstance();
    447447
    448448        return md5($app->getParam('signing_key') . $_SERVER['PHP_SELF']);
     
    459459    private function _loadDataFile()
    460460    {
    461         $app =& App::getInstance();
     461        $app =& App::getInstance();
    462462
    463463        if (!file_exists($this->_data_file)) {
     
    498498    private function _initializeDataFile()
    499499    {
    500         $app =& App::getInstance();
     500        $app =& App::getInstance();
    501501
    502502        $app->logMsg(sprintf('Initializing data file: %s', $this->_data_file), LOG_INFO, __FILE__, __LINE__);
     
    514514    private function _writeData()
    515515    {
    516         $app =& App::getInstance();
     516        $app =& App::getInstance();
    517517
    518518        if (!$this->_authorized) {
     
    562562    private function _filePutContents($filename, $content)
    563563    {
    564         $app =& App::getInstance();
     564        $app =& App::getInstance();
    565565
    566566        // Ensure requested filename is within the pedit data dir.
     
    612612    private function _createVersion()
    613613    {
    614         $app =& App::getInstance();
     614        $app =& App::getInstance();
    615615
    616616        if (!$this->_authorized) {
     
    650650    private function _deleteOldVersions()
    651651    {
    652         $app =& App::getInstance();
     652        $app =& App::getInstance();
    653653
    654654        $version_files = $this->_getVersions();
     
    709709    private function _restoreVersion($version)
    710710    {
    711         $app =& App::getInstance();
     711        $app =& App::getInstance();
    712712
    713713        if (!$this->_authorized) {
Note: See TracChangeset for help on using the changeset viewer.